From 8ea2e6c62009db4ca57ae3fd888efd2b4951fda6 Mon Sep 17 00:00:00 2001 From: Etienne Rey-bethbeder Date: Tue, 28 Feb 2023 14:56:28 +0100 Subject: [PATCH] SAL NEGRO --- builtins/exit.c | 4 ++-- execution.c | 4 ++-- minishell.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/builtins/exit.c b/builtins/exit.c index 0384e0a..c276925 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:54:48 by erey-bet ### ########.fr */ +/* Updated: 2023/02/28 14:55:39 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -24,7 +24,7 @@ static int error(int err, char *reason, char *problem) return (err); } -int ft_exit(char **args, int fd) +int ft_exit(char **args) { int err; diff --git a/execution.c b/execution.c index f066141..d3e8dcc 100644 --- a/execution.c +++ b/execution.c @@ -6,7 +6,7 @@ /* By: cchauvet fd_out, cmd->args + 1)); else if (ft_strcmp(cmd->executable, "exit") == 0) { - exit_code = ft_exit(cmd->args + 1, cmd->fd_out); + exit_code = ft_exit(cmd->args + 1); if (exit_code != -1) { data->exit_code = exit_code; diff --git a/minishell.h b/minishell.h index 7953596..3550bb8 100644 --- a/minishell.h +++ b/minishell.h @@ -6,7 +6,7 @@ /* By: cchauvet