]> granicus.if.org Git - apache/commitdiff
Constification.
authorBen Laurie <ben@apache.org>
Sat, 17 Jun 2000 12:36:54 +0000 (12:36 +0000)
committerBen Laurie <ben@apache.org>
Sat, 17 Jun 2000 12:36:54 +0000 (12:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85598 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index 2f4ec7b76d124ffda140e206d75e9d534e0407fb..22c44e8a3d323224391b02b85425611e07dd73f4 100644 (file)
@@ -550,7 +550,7 @@ API_EXPORT(char *) ap_make_dirstr_prefix(char *d, const char *s, int n)
  */
 API_EXPORT(char *) ap_make_dirstr_parent(ap_pool_t *p, const char *s)
 {
-    char *last_slash = strrchr(s, '/');
+    const char *last_slash = ap_strrchr_c(s, '/');
     char *d;
     int l;
 
@@ -608,7 +608,7 @@ API_EXPORT(void) ap_chdir_file(const char *file)
     const char *x;
     char buf[HUGE_STRING_LEN];
 
-    x = strrchr(file, '/');
+    x = ap_strrchr_c(file, '/');
     if (x == NULL) {
        chdir(file);
     }