]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
void * isn't compatible with a function pointer; deal with retrieving a
authorJeff Trawick <trawick@apache.org>
Mon, 4 Jun 2001 10:43:50 +0000 (10:43 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 4 Jun 2001 10:43:50 +0000 (10:43 +0000)
function pointer from apr_hash_get()

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89263 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_headers.c

index 8e7653d00de31554e8849b3a4f3b664cf95f0ce8..da354d6d2f74c843c8f976aee78723ec77afdb99 100644 (file)
@@ -281,15 +281,15 @@ static char *parse_misc_string(apr_pool_t *p, format_tag *tag, const char **sa)
 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];