]> granicus.if.org Git - apache/commitdiff
Get rid of some warnings on Tru64 and OS/390. void * isn't compatible
authorJeff Trawick <trawick@apache.org>
Thu, 4 Jan 2001 20:45:06 +0000 (20:45 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 4 Jan 2001 20:45:06 +0000 (20:45 +0000)
with function pointers.

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

modules/filters/mod_include.c

index c45b9ef6b616c518365d8f24e94925648594dfbc..92f7585b56cfaa5c4f7a22ed8e88d189c94a120a 100644 (file)
@@ -2776,7 +2776,10 @@ static void send_parsed_content(ap_bucket_brigade **bb, request_rec *r,
             ctx->combined_tag[ctx->directive_length] = '\0';
             ctx->curr_tag_pos = &ctx->combined_tag[ctx->directive_length+1];
 
-            handle_func = apr_hash_get(include_hash, ctx->combined_tag, ctx->directive_length+1);
+            handle_func = 
+                (int (*)(include_ctx_t *, ap_bucket_brigade **, request_rec *,
+                    ap_filter_t *, ap_bucket *, ap_bucket **))
+                apr_hash_get(include_hash, ctx->combined_tag, ctx->directive_length+1);
             if (handle_func != NULL) {
                 ret = (*handle_func)(ctx, bb, r, f, dptr, &content_head);
             }
@@ -3030,7 +3033,7 @@ static int includes_filter(ap_filter_t *f, ap_bucket_brigade *b)
 
 void ap_register_include_handler(char *tag, handler func)
 {
-    apr_hash_set(include_hash, tag, strlen(tag) + 1, func);
+    apr_hash_set(include_hash, tag, strlen(tag) + 1, (const void *)func);
 }
 
 static void include_post_config(apr_pool_t *p, apr_pool_t *plog,