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_mime.c
Date Mon, 18 Sep 2000 12:17:31 GMT
trawick     00/09/18 05:17:30

  Modified:    src/modules/standard mod_mime.c
  Log:
  Fix some problems with the recent port of RemoveEncoding and
  RemoveType to 2.0.  (--with-maintainer-mode works wonders!)
  
  Revision  Changes    Path
  1.26      +4 -4      apache-2.0/src/modules/standard/mod_mime.c
  
  Index: mod_mime.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_mime.c,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- mod_mime.c	2000/09/17 01:12:46	1.25
  +++ mod_mime.c	2000/09/18 12:17:29	1.26
  @@ -288,7 +288,7 @@
    * Just like the previous function, except that it records encoding
    * associations to be undone.
    */
  -static const char *remove_encoding(cmd_parms *cmd, void *m, char *ext)
  +static const char *remove_encoding(cmd_parms *cmd, void *m, const char *ext)
   {
       mime_dir_config *mcfg = (mime_dir_config *) m;
       attrib_info *suffix;
  @@ -305,7 +305,7 @@
    * Similar to the previous functions, except that it deals with filename
    * suffix/MIME-type associations.
    */
  -static const char *remove_type(cmd_parms *cmd, void *m, char *ext)
  +static const char *remove_type(cmd_parms *cmd, void *m, const char *ext)
   {
       mime_dir_config *mcfg = (mime_dir_config *) m;
       attrib_info *suffix;
  @@ -347,9 +347,9 @@
        "a media type"),
   AP_INIT_ITERATE("RemoveHandler", remove_handler, NULL, OR_FILEINFO,
        "one or more file extensions"),
  -AP_INIT_ITERATE("RemoveEncoding", remove_handler, NULL, OR_FILEINFO,
  +AP_INIT_ITERATE("RemoveEncoding", remove_encoding, NULL, OR_FILEINFO,
        "one or more file extensions"),
  -AP_INIT_ITERATE("RemoveType", remove_handler, NULL, OR_FILEINFO,
  +AP_INIT_ITERATE("RemoveType", remove_type, NULL, OR_FILEINFO,
        "one or more file extensions"),
   AP_INIT_TAKE1("SetHandler", ap_set_string_slot_lower, 
        (void *)XtOffsetOf(mime_dir_config, handler), OR_FILEINFO,
  
  
  

Mime
View raw message