summaryrefslogtreecommitdiffstats
path: root/src/e_unshebanged.c
diff options
context:
space:
mode:
authorjoe <rbousset@42lyon.fr>2020-11-25 17:24:14 +0100
committerjoe <rbousset@42lyon.fr>2020-11-25 17:24:14 +0100
commit4688255c3cb5570de3dffb10540ac4d686d3a6cb (patch)
tree2a93b30c3a0a7ef3ca5c1e38ef9e29bd4b0945e2 /src/e_unshebanged.c
parentVery good fix (diff)
download42-minishell-4688255c3cb5570de3dffb10540ac4d686d3a6cb.tar.gz
42-minishell-4688255c3cb5570de3dffb10540ac4d686d3a6cb.tar.bz2
42-minishell-4688255c3cb5570de3dffb10540ac4d686d3a6cb.tar.xz
42-minishell-4688255c3cb5570de3dffb10540ac4d686d3a6cb.tar.zst
42-minishell-4688255c3cb5570de3dffb10540ac4d686d3a6cb.zip
goodax
Diffstat (limited to '')
-rw-r--r--src/e_unshebanged.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/e_unshebanged.c b/src/e_unshebanged.c
index fabba8a..49978a9 100644
--- a/src/e_unshebanged.c
+++ b/src/e_unshebanged.c
@@ -10,15 +10,15 @@
/* */
/* ************************************************************************** */
+#include <errno.h>
#include <libft.h>
-#include <stdlib.h>
-#include <unistd.h>
#ifdef __linux__
# include <linux/limits.h>
#else
# include <limits.h>
#endif
-#include <errno.h>
+#include <stdlib.h>
+#include <unistd.h>
#include "f_fail.h"
#include "s_struct.h"
@@ -30,8 +30,8 @@
static char **e_get_new_argv(const char fullpath[], t_com *ptr, t_msh *msh)
{
- char **argv;
size_t i;
+ char **argv;
if ((argv = (char**)malloc((3 +
u_builtins_get_argc((const char**)ptr->argv)) * sizeof(char*))) == NULL)