Skip to content

Commit

Permalink
Drop useless "2" from function name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyak committed Dec 7, 2017
1 parent af15b28 commit d35c35c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct stream {
};

static void
skip_newline2(FILE *in)
skip_newline(FILE *in)
{
int ch = getc(in);

Expand Down Expand Up @@ -69,7 +69,7 @@ read_line(FILE *in, char split)
ch = getc(in);

if (ch == '\n' || ch == '\r') {
skip_newline2(in);
skip_newline(in);
continue;
}
else {
Expand All @@ -89,7 +89,7 @@ read_line(FILE *in, char split)

case '\n':
case '\r':
skip_newline2(in);
skip_newline(in);

if (i == size) {
char *tmp;
Expand Down

0 comments on commit d35c35c

Please sign in to comment.