Skip to content

Commit 1c953b6

Browse files
committed
norm:)
1 parent 89b8c17 commit 1c953b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

get_next_line.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ static char *ft_joinchr(char const *line, char c, size_t len)
1414
return (s);
1515
}
1616

17-
int get_next_line(char **line)
17+
int get_next_line(char **line)
1818
{
1919
char buffer;
2020
int res;
@@ -28,7 +28,7 @@ int get_next_line(char **line)
2828
while ((res = read(0, &buffer, 1)) > 0 && buffer != '\n')
2929
{
3030
if (!(tmp = ft_joinchr(*line, buffer, ++len)))
31-
return -1;
31+
return (-1);
3232
free(*line);
3333
*line = tmp;
3434
}

0 commit comments

Comments
 (0)