From: Jeff Trawick Date: Fri, 24 Aug 2001 13:14:19 +0000 (+0000) Subject: APR returns APR_EOF, not EOF... X-Git-Tag: 2.0.25~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4517cf41f5cb29cce0ac5b2f928e2d46c1773785;p=apache APR returns APR_EOF, not EOF... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90629 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_negotiation.c b/modules/mappers/mod_negotiation.c index 5d4658a6ea..46bed0326e 100644 --- a/modules/mappers/mod_negotiation.c +++ b/modules/mappers/mod_negotiation.c @@ -68,7 +68,6 @@ #include "apr_file_io.h" #include "apr_lib.h" -#define APR_WANT_STDIO /* for EOF */ #define APR_WANT_STRFUNC #include "apr_want.h" @@ -729,7 +728,7 @@ static enum header_state get_header_line(char *buffer, int len, apr_file_t *map) while (apr_file_getc(&c, map) != APR_EOF) { if (c == '#') { /* Comment line */ - while (apr_file_getc(&c, map) != EOF && c != '\n') { + while (apr_file_getc(&c, map) != APR_EOF && c != '\n') { continue; } } @@ -752,7 +751,7 @@ static enum header_state get_header_line(char *buffer, int len, apr_file_t *map) /* Continuation */ - while (cp < buf_end - 2 && (apr_file_getc(&c, map)) != EOF && c != '\n') { + while (cp < buf_end - 2 && (apr_file_getc(&c, map)) != APR_EOF && c != '\n') { *cp++ = c; }