diff options
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; |