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 4401e91..5525ae4 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