diff options
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 |