httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: cvs commit: httpd-2.0/modules/metadata mod_expires.c
Date Sun, 01 Jun 2003 18:06:59 GMT
coar@apache.org wrote:
> coar        2003/06/01 08:10:30
> 
>   Modified:    .        CHANGES
>                modules/metadata mod_expires.c
>   Index: mod_expires.c
>   ===================================================================
>   RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_expires.c,v
>   retrieving revision 1.44
>   retrieving revision 1.45
>   diff -u -u -r1.44 -r1.45
>   --- mod_expires.c	31 May 2003 22:00:23 -0000	1.44
>   +++ mod_expires.c	1 Jun 2003 15:10:30 -0000	1.45
>   @@ -357,7 +359,13 @@
>    {
>        expires_dir_config *dir_config = in_dir_config;
>        char *response, *real_code;
>   +    char *check;
>    
>   +    check = strrchr(mime, '/');
>   +    if ((strlen(++check) == 1) && (*check == '*')) {
>   +        dir_config->wildcards = 1;
>   +    }
>   +    

 >> cc: Warning: mod_expires.c, line 364: In this statement, the 
referenced type of the pointer value "mime" is const, but the referenced 
type of the target of this assignment is not. (notconstqual)
 >>     check = strrchr(mime, '/');
 >> ------------^

if I had time to play, I'd fix it myself...  unfortunately, the dust 
mask and sandpaper beckon :(


Mime
View raw message