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/htdigest.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/htdigest.c')
-rw-r--r-- | support/htdigest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/htdigest.c b/support/htdigest.c index c65a243a3b..7f41bfcd23 100644 --- a/support/htdigest.c +++ b/support/htdigest.c @@ -118,7 +118,7 @@ static void getword(char *word, char *line, char stop) while ((line[y++] = line[x++])); } -static int getline(char *s, int n, apr_file_t *f) +static int get_line(char *s, int n, apr_file_t *f) { register int i = 0; char ch; @@ -277,7 +277,7 @@ int main(int argc, const char * const argv[]) strcpy(realm, argv[2]); found = 0; - while (!(getline(line, MAX_STRING_LEN, f))) { + while (!(get_line(line, MAX_STRING_LEN, f))) { if (found || (line[0] == '#') || (!line[0])) { putline(tfp, line); continue; |