diff options
Diffstat (limited to 'src/u_utils.c')
-rw-r--r-- | src/u_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/u_utils.c b/src/u_utils.c index f50d861..ad44e82 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -19,12 +19,12 @@ #include "s_struct.h" void -u_eof_stdin(void) + u_eof_fd(int32_t fd) { char *line; - close(STDIN_FILENO); - get_next_line(STDIN_FILENO, &line); + close(fd); + get_next_line(fd, &line); ft_memdel((void*)&line); } |