From 960daa8658919e76ec65d52a6b74f625409c6a7e Mon Sep 17 00:00:00 2001 From: Etienne Rey-bethbeder Date: Tue, 28 Feb 2023 14:54:57 +0100 Subject: [PATCH] HITLER --- builtins/exit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/builtins/exit.c b/builtins/exit.c index 68d2c98..0384e0a 100644 --- a/builtins/exit.c +++ b/builtins/exit.c @@ -6,13 +6,13 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/24 10:17:59 by erey-bet #+# #+# */ -/* Updated: 2023/02/28 14:53:35 by erey-bet ### ########.fr */ +/* Updated: 2023/02/28 14:54:48 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ #include "../minishell.h" -static int error(int err, char *reason, char *problem, int fd) +static int error(int err, char *reason, char *problem) { ft_putstr_fd("minishell: exit ", 2); if (problem != NULL) @@ -32,11 +32,11 @@ int ft_exit(char **args, int fd) return (0); err = ft_atoi_check(args[0]); if (err == 1) - return (error(err, "numeric argument required", args[0], fd)); + return (error(err, "numeric argument required", args[0])); if (args[1] != NULL) - return (error(-1, "too many arguments", NULL, fd)); + return (error(-1, "too many arguments", NULL)); if (err > 0) - return(error(err, "numeric argument required", args[0], fd)); + return(error(err, "numeric argument required", args[0])); return ((ft_atoi(args[0]) % 256 + 256) % 256); }