From: Doug MacEachern Date: Wed, 7 Nov 2001 05:41:22 +0000 (+0000) Subject: ap_getline() is useful to modules outside of the core.. X-Git-Tag: 2.0.28~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d8781b7c691e62734d7c66232ad44e034f6cff0;p=thirdparty%2Fapache%2Fhttpd.git ap_getline() is useful to modules outside of the core.. change declaration from AP_CORE_DECLARE to AP_DECLARE so it can be used used outside the core PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91778 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_protocol.h b/include/http_protocol.h index 9ca5bc8266d..bb87cbf3647 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -526,7 +526,7 @@ AP_DECLARE(int) ap_get_basic_auth_pw(request_rec *r, const char **pw); */ AP_CORE_DECLARE(void) ap_parse_uri(request_rec *r, const char *uri); -AP_CORE_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold); +AP_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold); /** * Get the method number associated with the given string, assumed to diff --git a/server/protocol.c b/server/protocol.c index 8c57ae6464d..ce601e10a51 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -198,7 +198,7 @@ AP_DECLARE(apr_time_t) ap_rationalize_mtime(request_rec *r, apr_time_t mtime) * If no LF is detected on the last line due to a dropped connection * or a full buffer, that's considered an error. */ -AP_CORE_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold) +AP_DECLARE(int) ap_getline(char *s, int n, request_rec *r, int fold) { char *pos = s; char *last_char;