httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_file_cache.c
Date Tue, 03 Oct 2000 15:05:27 GMT
trawick     00/10/03 08:05:27

  Modified:    src/modules/standard mod_file_cache.c
  Log:
  The previous commit pointed out an unfortunate problem with the
  ap_os_case_canonical_filename() interface: It returns const char * on
  platforms where no mapping is ever performed but char * on platforms
  where mapping can occur.  Such a discrepancy seems to be a good choice,
  as no platform is penalized with extra pathlength.
  
  This tweak gets rid of a const misuse warning on systems where
  ap_os_case_canonical_filename() returns const char *.
  
  Revision  Changes    Path
  1.26      +2 -2      apache-2.0/src/modules/standard/mod_file_cache.c
  
  Index: mod_file_cache.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_file_cache.c,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- mod_file_cache.c	2000/10/03 13:11:25	1.25
  +++ mod_file_cache.c	2000/10/03 15:05:26	1.26
  @@ -137,7 +137,7 @@
   #if APR_HAS_SENDFILE
       apr_file_t *file;
   #endif
  -    char *filename;
  +    const char *filename;
       apr_finfo_t finfo;
       int is_mmapped;
   #if APR_HAS_MMAP
  @@ -273,7 +273,7 @@
       a_file *new_file;
       a_file tmp;
       apr_file_t *fd = NULL;
  -    char *fspec;
  +    const char *fspec;
   
       fspec = ap_os_case_canonical_filename(cmd->pool, filename);
       if (apr_stat(&tmp.finfo, fspec, cmd->temp_pool) != APR_SUCCESS) { 
  
  
  

Mime
View raw message