From c5aae008dee36276154882d8fd56c3bdeb473474 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 27 Oct 2020 19:59:20 +0100 Subject: Now norme --- src/s_lredir.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/s_lredir.c') 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 -#include #include #include #include @@ -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; -- cgit v1.2.3