httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/metadata mod_expires.c
Date Mon, 02 Jun 2003 13:14:44 GMT
trawick     2003/06/02 06:14:44

  Modified:    modules/metadata mod_expires.c
  Log:
  preserve const-ness while searching for a char in a string
  
  Revision  Changes    Path
  1.46      +2 -2      httpd-2.0/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.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- mod_expires.c	1 Jun 2003 15:10:30 -0000	1.45
  +++ mod_expires.c	2 Jun 2003 13:14:44 -0000	1.46
  @@ -359,9 +359,9 @@
   {
       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;
       }
  
  
  

Mime
View raw message