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_redirs.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/e_redirs.c') diff --git a/src/e_redirs.c b/src/e_redirs.c index f559ca1..ddfdb53 100644 --- a/src/e_redirs.c +++ b/src/e_redirs.c @@ -11,7 +11,6 @@ /* ************************************************************************** */ #include -#include #include #include #include @@ -23,7 +22,7 @@ static void e_redir_minus_two(struct s_lredir *ptr) { - int32_t fd[2]; + int fd[2]; if (ptr->heredoc == NULL) { @@ -38,7 +37,7 @@ static void e_redir_minus_two(struct s_lredir *ptr) static void e_redir_minus_one(struct s_lredir *ptr, t_msh *msh) { - int32_t fd; + int fd; if ((fd = open(ptr->path, O_RDONLY)) == -1) { @@ -51,7 +50,7 @@ static void e_redir_minus_one(struct s_lredir *ptr, t_msh *msh) static void e_redir_plus_one(struct s_lredir *ptr, t_msh *msh) { - int32_t fd; + int fd; if ((fd = open(ptr->path, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) { @@ -64,7 +63,7 @@ static void e_redir_plus_one(struct s_lredir *ptr, t_msh *msh) static void e_redir_plus_two(struct s_lredir *ptr, t_msh *msh) { - int32_t fd; + int fd; if ((fd = open(ptr->path, O_CREAT | O_APPEND | O_WRONLY, 0644)) == -1) { -- cgit v1.2.3