summaryrefslogtreecommitdiffstats
path: root/src/m_minishell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_minishell.c')
-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);