]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix warnings/errors (depending on compiler) introduced by the
authorJeff Trawick <trawick@apache.org>
Wed, 4 Feb 2004 14:48:30 +0000 (14:48 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 4 Feb 2004 14:48:30 +0000 (14:48 +0000)
recent mod_expires backport

Reviewed by: jorton, rederpj, trawick, Geoffrey Young

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

STATUS
modules/metadata/mod_expires.c

diff --git a/STATUS b/STATUS
index ae10de1867faf9712f863f9d99afd30648cbd99e..dfb785297f29b515fc8b95a75a4cdc7a593c8d45 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 APACHE 2.0 STATUS:                                              -*-text-*-
-Last modified at [$Date: 2004/02/04 14:37:40 $]
+Last modified at [$Date: 2004/02/04 14:48:30 $]
 
 Release:
 
@@ -80,10 +80,6 @@ PATCHES TO BACKPORT FROM 2.1
   [ please place file names and revisions from HEAD here, so it is easy to
     identify exactly what the proposed changes are! ]
 
-    * mod_expires: Fix new warnings introduced by ExpiresByType change.
-      http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/metadata/mod_expires.c?r1=1.45&r2=1.46
-      +1: jorton, rederpj
-
     * fix DECLINE_CMD interaction with ITERATE/ITERATE2
       http://cvs.apache.org/viewcvs.cgi/httpd-2.0/server/config.c?r1=1.168&r2=1.169
       +1: geoff, trawick
index be1b647a4bbab01f42784ea12fc707ba97b4966b..9d2fab1eab2320f4b59394c4e8b8345b2b105960 100644 (file)
@@ -360,9 +360,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;
     }