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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a50913ef40963c28484bdd222bb6db1534e5e3b;p=apache 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 ae9d801a25..5e85b11155 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 b354fb28a4..cdee65be5e 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;