You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2002/03/20 13:03:50 UTC
cvs commit: httpd-2.0/modules/http http_protocol.c
trawick 02/03/20 04:03:49
Modified: include http_protocol.h
modules/http http_protocol.c
Log:
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
Revision Changes Path
1.73 +1 -1 httpd-2.0/include/http_protocol.h
Index: http_protocol.h
===================================================================
RCS file: /home/cvs/httpd-2.0/include/http_protocol.h,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- http_protocol.h 20 Mar 2002 02:05:42 -0000 1.72
+++ http_protocol.h 20 Mar 2002 12:03:49 -0000 1.73
@@ -323,7 +323,7 @@
/**
*
*/
-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.
1.398 +1 -1 httpd-2.0/modules/http/http_protocol.c
Index: http_protocol.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/http/http_protocol.c,v
retrieving revision 1.397
retrieving revision 1.398
diff -u -r1.397 -r1.398
--- http_protocol.c 20 Mar 2002 01:58:46 -0000 1.397
+++ http_protocol.c 20 Mar 2002 12:03:49 -0000 1.398
@@ -1253,7 +1253,7 @@
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;