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_redirs.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_redirs.c | 9 |
1 files changed, 4 insertions, 5 deletions
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 <libft.h> -#include <stdint.h> #include <stddef.h> #include <fcntl.h> #include <unistd.h> @@ -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) { |