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_headers.c
Date Mon, 04 Jun 2001 10:43:51 GMT
trawick     01/06/04 03:43:51

  Modified:    modules/metadata mod_headers.c
  Log:
  void * isn't compatible with a function pointer; deal with retrieving a
  function pointer from apr_hash_get()
  
  Revision  Changes    Path
  1.30      +3 -3      httpd-2.0/modules/metadata/mod_headers.c
  
  Index: mod_headers.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_headers.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- mod_headers.c	2001/06/03 11:21:51	1.29
  +++ mod_headers.c	2001/06/04 10:43:50	1.30
  @@ -281,15 +281,15 @@
   static char *parse_format_tag(apr_pool_t *p, format_tag *tag, const char **sa)
   { 
       const char *s = *sa;
  -    void *tag_handler;
  -
  +    const char * (*tag_handler)(request_rec *,char *);
  +    
       /* Handle string literal/conditionals */
       if (*s != '%') {
           return parse_misc_string(p, tag, sa);
       }
       s++; /* skip the % */
   
  -    tag_handler = apr_hash_get(format_tag_hash, s++, 1);
  +    tag_handler = (const char * (*)(request_rec *,char *))apr_hash_get(format_tag_hash,
s++, 1);
   
       if (!tag_handler) {
           char dummy[2];
  
  
  

Mime
View raw message