summaryrefslogtreecommitdiffstats
path: root/server/config.c
diff options
context:
space:
mode:
authorDaniel Earl Poirier <poirier@apache.org>2010-02-16 23:00:13 +0100
committerDaniel Earl Poirier <poirier@apache.org>2010-02-16 23:00:13 +0100
commit266104e13f4025aa5422264f2e09924f3461e878 (patch)
treef53797e3e51b5eab36944875e9c231abff4678af /server/config.c
parentsupport/htcacheclean: Teach it how to write a pid file (modelled on (diff)
downloadapache2-266104e13f4025aa5422264f2e09924f3461e878.tar.xz
apache2-266104e13f4025aa5422264f2e09924f3461e878.zip
More correct fix for compile warning about discarding constness
of fname. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910717 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/config.c')
-rw-r--r--server/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/config.c b/server/config.c
index 9290fb31d7..1406127499 100644
--- a/server/config.c
+++ b/server/config.c
@@ -1661,7 +1661,7 @@ static const char *process_resource_config_fnmatch(server_rec *s,
apr_pool_t *ptemp,
unsigned depth)
{
- char *rest;
+ const char *rest;
apr_status_t rv;
apr_dir_t *dirp;
apr_finfo_t dirent;
@@ -1670,7 +1670,7 @@ static const char *process_resource_config_fnmatch(server_rec *s,
int current;
/* find the first part of the filename */
- rest = ap_strchr((char*)fname, '/');
+ rest = ap_strchr_c(fname, '/');
if (rest) {
fname = apr_pstrndup(ptemp, fname, rest - fname);
rest++;