]> granicus.if.org Git - apache/commitdiff
ap_rset_content_type() should take const char * instead of char *
authorJeff Trawick <trawick@apache.org>
Wed, 20 Mar 2002 12:03:49 +0000 (12:03 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 20 Mar 2002 12:03:49 +0000 (12:03 +0000)
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

include/http_protocol.h
modules/http/http_protocol.c

index ae9d801a25d7692646c77a414fbf9f6c9b5f8163..5e85b11155d0e0f4554820efe1066bf992ffa081 100644 (file)
@@ -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.
index b354fb28a492ce77b54c4f7691667bf2b1387950..cdee65be5eba61ce05acf2492504247fd10ab177 100644 (file)
@@ -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;