From 654854ba36698753fdb066dcc80ff9339b88a237 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 4 Jan 2001 20:45:06 +0000 Subject: [PATCH] Get rid of some warnings on Tru64 and OS/390. void * isn't compatible 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index c45b9ef6b6..92f7585b56 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -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, -- 2.50.1