From: Jeff Trawick Date: Sun, 15 Jan 2012 00:27:57 +0000 (+0000) Subject: fix const warning with strchr->ap_strchr mapping X-Git-Tag: 2.5.0-alpha~7573 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba8bc09ce473d25903ed39d53434e5eb388a515b;p=thirdparty%2Fapache%2Fhttpd.git fix const warning with strchr->ap_strchr mapping git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1231602 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/test/mod_policy.c b/modules/test/mod_policy.c index 9018678a788..b83e1092ca5 100644 --- a/modules/test/mod_policy.c +++ b/modules/test/mod_policy.c @@ -202,7 +202,7 @@ static apr_status_t policy_type_out_filter(ap_filter_t *f, /* 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); }