]> granicus.if.org Git - apache/commitdiff
More correct fix for compile warning about discarding constness
authorDaniel Earl Poirier <poirier@apache.org>
Tue, 16 Feb 2010 22:00:13 +0000 (22:00 +0000)
committerDaniel Earl Poirier <poirier@apache.org>
Tue, 16 Feb 2010 22:00:13 +0000 (22:00 +0000)
of fname.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910717 13f79535-47bb-0310-9956-ffa450edef68

server/config.c

index 9290fb31d7932e642f3f04a501b1978ee5062ef7..140612749904ba1323b3511ccba3b24ac21c68be 100644 (file)
@@ -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++;