]> granicus.if.org Git - apache/commitdiff
fix some const-ness problems which break the compile with the native
authorJeff Trawick <trawick@apache.org>
Tue, 25 Feb 2003 14:44:42 +0000 (14:44 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 25 Feb 2003 14:44:42 +0000 (14:44 +0000)
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

modules/mappers/mod_rewrite.c

index 71f43e28c0125faf27ced76b9cf2ed36996fbc43..9acc44ac7f1e8260680a290bd0fbac056223d5bf 100644 (file)
@@ -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)),