diff options
author | Jeff Trawick <trawick@apache.org> | 2002-05-10 18:20:29 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2002-05-10 18:20:29 +0000 |
commit | 0f0550b08c593df5b8b0ab7fb81e4deb6ce1a6b7 (patch) | |
tree | d4c792f71a257bca161258473ac68d037f2006f7 /support/logresolve.c | |
parent | b603af85900edbd5b77a0643f3fc518d825fb385 (diff) | |
download | httpd-0f0550b08c593df5b8b0ab7fb81e4deb6ce1a6b7.tar.gz |
avoid colliding with getline() as defined by glibc
(it breaks if you need to turn on _GNU_SOURCE)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95035 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/logresolve.c')
-rw-r--r-- | support/logresolve.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support/logresolve.c b/support/logresolve.c index 197181449a..31dc609fda 100644 --- a/support/logresolve.c +++ b/support/logresolve.c @@ -66,7 +66,7 @@ #endif static void cgethost(struct in_addr ipnum, char *string, int check); -static int getline(char *s, int n); +static int get_line(char *s, int n); static void stats(FILE *output); #ifdef BEOS @@ -282,7 +282,7 @@ static void stats (FILE *output) * gets a line from stdin */ -static int getline (char *s, int n) +static int get_line (char *s, int n) { char *cp; @@ -332,7 +332,7 @@ int main (int argc, char *argv[]) for (i = 0; i < MAX_ERR + 2; i++) errors[i] = 0; - while (getline(line, MAXLINE)) { + while (get_line(line, MAXLINE)) { if (line[0] == '\0') continue; entries++; |