diff --git a/.nfs00000000098c816200000391 b/.nfs00000000098c816200000391 deleted file mode 100755 index c1c0570..0000000 Binary files a/.nfs00000000098c816200000391 and /dev/null differ diff --git a/Makefile b/Makefile index a970ad0..5c15c8d 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ SRCS = ${BUILTINS_SRC} \ ./redirection/infile.c \ ./redirection/outfile.c \ ./redirection/file.c \ - ./parse/cmds_parse.c + ./parse/parse.c OBJS = ${SRCS:.c=.o} diff --git a/data/data.c b/data/data.c index 0b47650..224391d 100644 --- a/data/data.c +++ b/data/data.c @@ -1,12 +1,5 @@ #include "./data_private.h" -int *ft_get_exit_code(void) -{ - static int exit_code = 0; - - return (&exit_code); -} - int ft_gen_exit_code(t_data *data) { char *str; diff --git a/data/data.h b/data/data.h index 8afc656..9a263d7 100644 --- a/data/data.h +++ b/data/data.h @@ -10,7 +10,6 @@ typedef struct s_data char *exit_code_str; } t_data; -int *ft_get_exit_code(); int ft_gen_exit_code(t_data *data); #endif diff --git a/parse/cmds_parse.c b/parse/parse.c similarity index 99% rename from parse/cmds_parse.c rename to parse/parse.c index 476ed06..f9da0ab 100644 --- a/parse/cmds_parse.c +++ b/parse/parse.c @@ -31,7 +31,7 @@ int ft_args_parse(t_data *data, char *cmd_str, t_cmd *cmd) if (tab == NULL) return (1); i = 0; - while (tab[i] == NULL) + while (tab[i] != NULL) { str = ft_env_filler(data, tab[i]); if (str == NULL)