diff --git a/builtins/exit.c b/builtins/exit.c index d2ff519..fd81ce6 100644 --- a/builtins/exit.c +++ b/builtins/exit.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/24 10:17:59 by erey-bet #+# #+# */ -/* Updated: 2023/04/05 12:16:37 by erey-bet ### ########.fr */ +/* Updated: 2023/04/05 12:21:18 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,8 +26,6 @@ static int error(int err, char *reason, char *problem) int ft_exit(char **args, int err) { - int err; - if (args[0] == NULL) { write(1, "exit\n", 6);