From d5eb265a3f03b759c9421b2115664430e5fcc170 Mon Sep 17 00:00:00 2001 From: Etienne Rey-bethbeder Date: Tue, 28 Feb 2023 14:28:54 +0100 Subject: [PATCH] PAS PAR LES FESSESESESESESESESESE --- builtins/exit.c | 4 ++-- builtins/export.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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