From: Jeff Trawick Date: Tue, 25 Feb 2003 14:44:42 +0000 (+0000) Subject: fix some const-ness problems which break the compile with the native X-Git-Tag: pre_ajp_proxy~2078 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c6fce7f568fc1dd55b94f463251a66becd6482b;p=apache fix some const-ness problems which break the compile with the native compiler for AIX (and probably HP-UX and Tru64 as well, since they tend to be picky too) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98792 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index 71f43e28c0..9acc44ac7f 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -4252,8 +4252,8 @@ static int subreq_ok(request_rec *r) static int prefix_stat(const char *path, apr_pool_t *pool) { const char *curpath = path; - char *root; - char *slash; + const char *root; + const char *slash; char *statpath; apr_status_t rv; @@ -4266,7 +4266,7 @@ static int prefix_stat(const char *path, apr_pool_t *pool) /* let's recognize slashes only, the mod_rewrite semantics are opaque * enough. */ - if ((slash = ap_strchr(curpath, '/')) != NULL) { + if ((slash = ap_strchr_c(curpath, '/')) != NULL) { rv = apr_filepath_merge(&statpath, root, apr_pstrndup(pool, curpath, (apr_size_t)(slash - curpath)),