]> granicus.if.org Git - apache/commitdiff
APR returns APR_EOF, not EOF...
authorJeff Trawick <trawick@apache.org>
Fri, 24 Aug 2001 13:14:19 +0000 (13:14 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 24 Aug 2001 13:14:19 +0000 (13:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90629 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_negotiation.c

index 5d4658a6ea52e1b4b316be180b6ef5206d2a4a5c..46bed0326e9b73c3b96512d141a23260dcec82c3 100644 (file)
@@ -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;
             }