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/s_lredir.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 'src/s_lredir.c')
-rw-r--r-- | src/s_lredir.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/s_lredir.c b/src/s_lredir.c index 59ed6e1..517c2de 100644 --- a/src/s_lredir.c +++ b/src/s_lredir.c @@ -11,7 +11,6 @@ /* ************************************************************************** */ #include <libft.h> -#include <stdint.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> @@ -69,10 +68,10 @@ void s_lredir_clear(struct s_lredir **lredir) *lredir = NULL; } -static int32_t s_get_right_fd(const char path[]) +static int s_get_right_fd(const char path[]) { char *ptr; - int32_t rfd; + int rfd; ptr = (char*)path; while (ft_isdigit(*ptr) == TRUE) @@ -91,7 +90,7 @@ static int32_t s_get_right_fd(const char path[]) return (rfd); } -struct s_lredir *s_lredir_new(const char path[], int32_t fd, int8_t redir) +struct s_lredir *s_lredir_new(const char path[], int fd, char redir) { struct s_lredir *rdr; |