From: Jeff Trawick Date: Thu, 4 Jan 2001 20:45:06 +0000 (+0000) Subject: Get rid of some warnings on Tru64 and OS/390. void * isn't compatible X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6af95eecf60924a12d6e28b05221b6df079fbbd9;p=apache 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 --- 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,