summaryrefslogtreecommitdiffstats
path: root/src/ft_process_arg.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-10-30 17:05:31 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-10-30 17:05:31 +0100
commit3051df7c3e57d5645a78d87fa63ff1144fd8699a (patch)
tree5676fe8501f965cc9e62b8c25791ce1c9a04b0f4 /src/ft_process_arg.c
parentwork work (diff)
download42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.tar.gz
42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.tar.bz2
42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.tar.xz
42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.tar.zst
42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.zip
exit function works
Diffstat (limited to 'src/ft_process_arg.c')
-rw-r--r--src/ft_process_arg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_process_arg.c b/src/ft_process_arg.c
index 4f6ccf6..9a1b620 100644
--- a/src/ft_process_arg.c
+++ b/src/ft_process_arg.c
@@ -21,6 +21,6 @@ ft_process_arg(const char *arg)
else if (!ft_strncmp(com[0], "pwd", ft_strlen(com[0])))
return (ft_pwd());
else
- return (ft_error(com[0]), 127);
+ return (ft_error(com[0], 127));
return (0);
}