Clean-up: normed out files

This commit is contained in:
Tanguy MAZE
2019-10-17 11:04:04 +02:00
parent d22bc173f1
commit 85af14cd9f
7 changed files with 29 additions and 31 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/20 14:33:48 by tmaze #+# #+# */
/* Updated: 2019/10/10 13:49:33 by tmaze ### ########.fr */
/* Updated: 2019/10/17 10:07:21 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -39,7 +39,7 @@ t_env *envcpy(t_env *env)
return (cpy);
}
int cmd_env(char** argv, t_env** env)
int cmd_env(char **argv, t_env **env)
{
int i;
t_env *it;
@@ -48,7 +48,7 @@ int cmd_env(char** argv, t_env** env)
i = 1;
env_cp = NULL;
if (!ft_strequ(argv[i] , "-i") && (env != NULL))
if (!ft_strequ(argv[i], "-i") && (env != NULL))
{
it = *env;
while (it)
@@ -63,8 +63,8 @@ int cmd_env(char** argv, t_env** env)
it = it->next;
}
}
if (ft_strequ(argv[i] , "-i"))
i++;
if (ft_strequ(argv[i], "-i"))
i++;
if (argv[i])
exec_cmd(argv + i, &env_cp);
else