diff --git a/builtins/exit.c b/builtins/exit.c index 457e3ba..b76585a 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/02/28 14:24:47 by erey-bet ### ########.fr */ +/* Updated: 2023/02/28 14:28:18 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -31,7 +31,7 @@ int ft_exit(char **args, int fd) if (args[0] == NULL) return (0); - err = ft_atoi_check; + err = ft_atoi_check(args[0]); if (err == 1) return (error(err, "numeric argument required", args[0], fd)); if (args[1] != NULL) diff --git a/builtins/export.c b/builtins/export.c index 5a632ed..db729ff 100644 --- a/builtins/export.c +++ b/builtins/export.c @@ -6,7 +6,7 @@ /* By: cchauvet