diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
commit | c5aae008dee36276154882d8fd56c3bdeb473474 (patch) | |
tree | a40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/e_externs.c | |
parent | TODO update (diff) | |
download | 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.gz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.bz2 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.xz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.zst 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.zip |
Now norme
Diffstat (limited to '')
-rw-r--r-- | src/e_externs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/e_externs.c b/src/e_externs.c index 0490e82..a27e4ca 100644 --- a/src/e_externs.c +++ b/src/e_externs.c @@ -12,7 +12,6 @@ #include <sys/wait.h> #include <libft.h> -#include <stdint.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> @@ -39,7 +38,7 @@ static void e_extern_child(const char fullpath[], t_com *ptr, t_msh *msh) { char buff[7]; - int32_t fd; + int fd; if ((fd = open(fullpath, O_RDONLY)) != -1) { @@ -92,11 +91,11 @@ static void e_fullpath_not_found(t_com *ptr, t_msh *msh) static void e_exec_path(const char fullpath[], t_com *ptr, - uint8_t fp_ret, + unsigned char fp_ret, t_msh *msh) { pid_t pid; - int32_t status; + int status; if ((pid = fork()) == 0) { @@ -121,7 +120,7 @@ static void e_exec_path(const char fullpath[], void e_extern(t_com *ptr, t_msh *msh) { char fullpath[PATH_MAX]; - uint8_t fp_ret; + unsigned char fp_ret; fullpath[0] = C_NUL; if (ptr->bin != NULL && (ft_ischarset("./", ptr->bin[0]) == TRUE |