Skip to content

Commit dfde531

Browse files
committed
fix warnings/errors (depending on compiler) introduced by the
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
1 parent 32822a1 commit dfde531

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

STATUS

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
APACHE 2.0 STATUS: -*-text-*-
2-
Last modified at [$Date: 2004/02/04 14:37:40 $]
2+
Last modified at [$Date: 2004/02/04 14:48:30 $]
33

44
Release:
55

@@ -80,10 +80,6 @@ PATCHES TO BACKPORT FROM 2.1
8080
[ please place file names and revisions from HEAD here, so it is easy to
8181
identify exactly what the proposed changes are! ]
8282

83-
* mod_expires: Fix new warnings introduced by ExpiresByType change.
84-
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/metadata/mod_expires.c?r1=1.45&r2=1.46
85-
+1: jorton, rederpj
86-
8783
* fix DECLINE_CMD interaction with ITERATE/ITERATE2
8884
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/server/config.c?r1=1.168&r2=1.169
8985
+1: geoff, trawick

modules/metadata/mod_expires.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ static const char *set_expiresbytype(cmd_parms *cmd, void *in_dir_config,
360360
{
361361
expires_dir_config *dir_config = in_dir_config;
362362
char *response, *real_code;
363-
char *check;
363+
const char *check;
364364

365-
check = strrchr(mime, '/');
365+
check = ap_strrchr_c(mime, '/');
366366
if ((strlen(++check) == 1) && (*check == '*')) {
367367
dir_config->wildcards = 1;
368368
}

0 commit comments

Comments
 (0)