From: Jeff Trawick Date: Wed, 20 Mar 2002 12:03:49 +0000 (+0000) Subject: ap_rset_content_type() should take const char * instead of char * X-Git-Tag: 2.0.34~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c3ebe7f5c2497d3adb96cd08aebc5b634ee6d9;p=thirdparty%2Fapache%2Fhttpd.git ap_rset_content_type() should take const char * instead of char * this is friendlier to callers and r->content_type is const char * too so it isn't harmful this fixes a fatal compile error with AIX+xlc git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94051 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_protocol.h b/include/http_protocol.h index ae9d801a25d..5e85b11155d 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -323,7 +323,7 @@ AP_DECLARE(void) ap_clear_method_list(ap_method_list_t *l); /** * */ -AP_DECLARE(void) ap_rset_content_type(char *str, request_rec *r); +AP_DECLARE(void) ap_rset_content_type(const char *str, request_rec *r); /* Hmmm... could macrofy these for now, and maybe forever, though the * definitions of the macros would get a whole lot hairier. diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index b354fb28a49..cdee65be5eb 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1253,7 +1253,7 @@ static void fixup_vary(request_rec *r) apr_array_pstrcat(r->pool, varies, ',')); } } -AP_DECLARE(void) ap_rset_content_type(char *ct, request_rec *r) +AP_DECLARE(void) ap_rset_content_type(const char *ct, request_rec *r) { r->content_type = ct;