Skip to content

Commit

Permalink
parser.c: Fixes another travis-ci build problem where fgetline() shou…
Browse files Browse the repository at this point in the history
…ld only be built if WITH_GETLINE is in play.

  fgetline() is only called from a wrapped
  >> #ifdef WITH_GETLINE
  >> read_lines() {
  >> ==> fgetline()
  >> }
  >> #endif
  • Loading branch information
TerraTech committed Nov 9, 2017
1 parent 9197e98 commit c6b9bb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser.c
Expand Up @@ -2580,6 +2580,7 @@ read_line (GLog * glog, char *line, int *test, int *cnt, int dry_run)
*
* On error, NULL is returned.
* On success, the malloc'd line is returned. */
#ifdef WITH_GETLINE
char *
fgetline (FILE * fp)
{
Expand Down Expand Up @@ -2629,6 +2630,7 @@ fgetline (FILE * fp)

return NULL;
}
#endif

/* Iterate over the log and read line by line (use GNU get_line to parse the
* whole line).
Expand Down

0 comments on commit c6b9bb1

Please sign in to comment.