summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/e_externs.c19
-rw-r--r--src/e_externs.h6
2 files changed, 10 insertions, 15 deletions
diff --git a/src/e_externs.c b/src/e_externs.c
index f4b608c..dd37125 100644
--- a/src/e_externs.c
+++ b/src/e_externs.c
@@ -30,10 +30,7 @@
#include "u_path.h"
#include "u_utils.h"
-static void
- e_extern_child(const char *fullpath,
- t_com *ptr,
- t_msh *msh)
+static void e_extern_child(const char *fullpath, t_com *ptr, t_msh *msh)
{
if (execve(fullpath, ptr->argv, msh->envp) == -1)
{
@@ -46,9 +43,7 @@ static void
}
}
-static void
- e_export_env_fork(t_com *ptr,
- t_msh *msh)
+static void e_export_env_fork(t_com *ptr, t_msh *msh)
{
char **re_ptr;
@@ -60,10 +55,11 @@ static void
}
}
-static void
- e_exec_path(const char fullpath[],
- t_com *ptr,
- t_msh *msh)
+/*
+** TODO: handle fork failed
+*/
+
+static void e_exec_path(const char fullpath[], t_com *ptr, t_msh *msh)
{
pid_t pid;
int32_t status;
@@ -77,7 +73,6 @@ static void
}
else if (pid < 0)
{
- /* TODO: handle fork failed */
}
else
{
diff --git a/src/e_externs.h b/src/e_externs.h
index 3e666f9..92f9fcc 100644
--- a/src/e_externs.h
+++ b/src/e_externs.h
@@ -10,10 +10,10 @@
/* */
/* ************************************************************************** */
-#ifndef E_EXTERNS_H
-#define E_EXTERNS_H
+#ifndef FT_E_EXTERNS_H
+# define FT_E_EXTERNS_H
-#include "s_struct.h"
+# include "s_struct.h"
void e_extern(t_com *ptr, t_msh *msh);