httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1231602 - /httpd/httpd/trunk/modules/test/mod_policy.c
Date Sun, 15 Jan 2012 00:27:58 GMT
Author: trawick
Date: Sun Jan 15 00:27:57 2012
New Revision: 1231602

URL: http://svn.apache.org/viewvc?rev=1231602&view=rev
Log:
fix const warning with strchr->ap_strchr mapping

Modified:
    httpd/httpd/trunk/modules/test/mod_policy.c

Modified: httpd/httpd/trunk/modules/test/mod_policy.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/test/mod_policy.c?rev=1231602&r1=1231601&r2=1231602&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/test/mod_policy.c (original)
+++ httpd/httpd/trunk/modules/test/mod_policy.c Sun Jan 15 00:27:57 2012
@@ -202,7 +202,7 @@ static apr_status_t policy_type_out_filt
         /* content type present and valid? */
         if (f->r->content_type) {
             const char *type = f->r->content_type;
-            const char *end = strchr(type, ';');
+            const char *end = ap_strchr_c(type, ';');
             if (end) {
                 type = apr_pstrmemdup(f->r->pool, type, end - type);
             }



Mime
View raw message