From cbdad1163f2c693f0ef6e94145c8352afe4bafea Mon Sep 17 00:00:00 2001 From: narnaud Date: Sat, 7 May 2022 00:27:21 +0200 Subject: [PATCH] fix bad exit call --- caller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caller.c b/caller.c index 48d1b3a..99f22ca 100755 --- a/caller.c +++ b/caller.c @@ -27,7 +27,7 @@ int builtin_call(t_datas *datas, t_command *cmd) else if (ft_strncmp(cmd->argv[0], "env", 4) == 0) return (ft_env(datas, cmd)); else if (ft_strncmp(cmd->argv[0], "exit", 5) == 0) - return (ft_exit(cmd)); + return (ft_exit(datas, cmd)); else return (-1); }