From 7b4023ab2cb7b93dcd30ce231a05e21e54c02a40 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 6 May 2002 14:02:50 +0000 Subject: [PATCH] fix the type of the pointer returned by the hash lookup git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94961 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_rewrite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index 0acb04ef14..b0cdef5ff9 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -462,7 +462,8 @@ static const char *cmd_rewritemap(cmd_parms *cmd, void *dconf, const char *a1, newmap->type = MAPTYPE_INT; newmap->datafile = NULL; newmap->checkfile = NULL; - newmap->func = apr_hash_get(mapfunc_hash, a2+4, strlen(a2+4)); + newmap->func = (char *(*)(request_rec *,char *)) + apr_hash_get(mapfunc_hash, a2+4, strlen(a2+4)); if ((sconf->state == ENGINE_ENABLED) && (newmap->func == NULL)) { return apr_pstrcat(cmd->pool, "RewriteMap: internal map not found:", a2+4, NULL); -- 2.40.0