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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb81acdb05df6a925b978a33df1b61a290a873ed;p=thirdparty%2Fapache%2Fhttpd.git 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 71f43e28c01..9acc44ac7f1 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)),