From c5aae008dee36276154882d8fd56c3bdeb473474 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 27 Oct 2020 19:59:20 +0100 Subject: Now norme --- src/e_pipes_next.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/e_pipes_next.c') diff --git a/src/e_pipes_next.c b/src/e_pipes_next.c index 250439f..6cca414 100644 --- a/src/e_pipes_next.c +++ b/src/e_pipes_next.c @@ -12,7 +12,6 @@ #include #include -#include #include #include #include @@ -42,7 +41,7 @@ static void e_fullpath_not_found(t_com *ptr, t_msh *msh) static void e_exec_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) { @@ -69,12 +68,12 @@ static void e_exec_child(const char fullpath[], t_com *ptr, t_msh *msh) } void e_pipe_child(char fullpath[], - uint8_t fp_ret, + unsigned char fp_ret, t_com *ptr, t_msh *msh) { - uint8_t bu_id; - uint8_t ret; + unsigned char bu_id; + unsigned char ret; e_dup_redirs(ptr, msh); if (ft_strncmp(fullpath, "builtin", 8) == 0) @@ -111,7 +110,7 @@ size_t e_get_pipes_count(struct s_lpipes *ptr) return (pipes); } -void e_close_unused_fds(int32_t fd[256][2], size_t pipes) +void e_close_unused_fds(int fd[256][2], size_t pipes) { size_t i; -- cgit v1.2.3