Commit b50c482e authored by Jeff Trawick's avatar Jeff Trawick
Browse files

APR returns APR_EOF, not EOF...


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90629 13f79535-47bb-0310-9956-ffa450edef68
parent ba6242ea
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;
            }