summaryrefslogtreecommitdiffstats
path: root/src/m_minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-09 16:17:52 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-09 16:17:52 +0200
commitc68b7637d42fac3986857685980e7a7090f5a5aa (patch)
tree85d78b0a187695a7fab0124ae6c02ae12d223e91 /src/m_minishell.c
parentIn progress (diff)
download42-minishell-c68b7637d42fac3986857685980e7a7090f5a5aa.tar.gz
42-minishell-c68b7637d42fac3986857685980e7a7090f5a5aa.tar.bz2
42-minishell-c68b7637d42fac3986857685980e7a7090f5a5aa.tar.xz
42-minishell-c68b7637d42fac3986857685980e7a7090f5a5aa.tar.zst
42-minishell-c68b7637d42fac3986857685980e7a7090f5a5aa.zip
In progress
Diffstat (limited to '')
-rw-r--r--src/m_minishell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/m_minishell.c b/src/m_minishell.c
index a538041..6be605a 100644
--- a/src/m_minishell.c
+++ b/src/m_minishell.c
@@ -14,6 +14,7 @@
#include <stdint.h>
#include <unistd.h>
#include <string.h>
+#include <unistd.h>
#include <errno.h>
#include "f_fail.h"
@@ -32,7 +33,7 @@ int
if ((msh = init_msh(argv, envp)) == NULL)
{
- ft_dprintf(2, "%s\n", strerror(errno));
+ ft_dprintf(STDERR_FILENO, "%s\n", strerror(errno));
return (FT_RET_ALLOC);
}
ret = m_argv(argc, argv, msh);