summaryrefslogtreecommitdiffstats
path: root/src/e_externs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/e_externs.c')
-rw-r--r--src/e_externs.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/e_externs.c b/src/e_externs.c
index 0e3c2bb..554b3d1 100644
--- a/src/e_externs.c
+++ b/src/e_externs.c
@@ -21,12 +21,12 @@
#include "f_fail.h"
#include "m_redirs.h"
#include "s_destroy.h"
-#include "s_lcom.h"
+#include "s_line.h"
#include "s_struct.h"
static void
e_extern_child(const char *fullpath,
- t_lcom *ptr,
+ t_com *ptr,
t_msh *msh)
{
dup_redirs(ptr, msh);
@@ -35,7 +35,7 @@ static void
}
static void
- e_export_env_fork(t_lcom *ptr,
+ e_export_env_fork(t_com *ptr,
t_msh *msh)
{
char **re_ptr;
@@ -50,7 +50,7 @@ static void
static void
exec_path(const char fullpath[],
- t_lcom *ptr,
+ t_com *ptr,
t_msh *msh)
{
pid_t pid;
@@ -75,24 +75,24 @@ static void
}
void
- e_extern(t_lcom *ptr,
+ e_extern(t_com *ptr,
t_msh *msh)
{
char **envpath;
char *fullpath;
- if (ft_ischarset("./", ptr->com[0]))
+ if (ft_ischarset("./", ptr->bin[0]))
{
- exec_path(ptr->com, ptr, msh);
+ exec_path(ptr->bin, ptr, msh);
return ;
}
else if ((envpath = get_env_path(msh)) != NULL)
{
- fullpath = search_in_path(ptr->com, envpath, msh);
+ fullpath = search_in_path(ptr->bin, envpath, msh);
ft_delwords(envpath);
if (fullpath == NULL)
{
- f_fail_command_not_found(ptr->com);
+ f_fail_command_not_found(ptr->bin);
}
else
{