]> granicus.if.org Git - apache/commitdiff
preserve const-ness while searching for a char in a string
authorJeff Trawick <trawick@apache.org>
Mon, 2 Jun 2003 13:14:44 +0000 (13:14 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 2 Jun 2003 13:14:44 +0000 (13:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100135 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_expires.c

index c15191f4adc226237f6c135821513785d3912e8e..47530a34c9d0faa65030a3b5ad65512bd2da9189 100644 (file)
@@ -359,9 +359,9 @@ static const char *set_expiresbytype(cmd_parms *cmd, void *in_dir_config,
 {
     expires_dir_config *dir_config = in_dir_config;
     char *response, *real_code;
-    char *check;
+    const char *check;
 
-    check = strrchr(mime, '/');
+    check = ap_strrchr_c(mime, '/');
     if ((strlen(++check) == 1) && (*check == '*')) {
         dir_config->wildcards = 1;
     }