From cde465358750ef03b66655edcbef468a4a2f210b Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 20 Aug 2020 23:23:35 +0200 Subject: Refactoring preprocess, replacing ms_split_notrim by a more direct function --- src/builtin/exit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/builtin') diff --git a/src/builtin/exit.c b/src/builtin/exit.c index 3f1d843..640fc01 100644 --- a/src/builtin/exit.c +++ b/src/builtin/exit.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:10:16 by charles #+# #+# */ -/* Updated: 2020/07/19 19:12:46 by charles ### ########.fr */ +/* Updated: 2020/08/20 17:31:18 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -34,12 +34,12 @@ int builtin_exit(char **argv, t_env env) if (*after != '\0' || errno == ERANGE) { errorf("exit: %s: numeric argument required\n", argv[1]); - return 2; + return (2); } if (argv[2] != NULL) { errorf("exit: too many arguments\n"); - return 1; + return (1); } } exit(status % 256); -- cgit