From: Jeff Trawick Date: Mon, 6 May 2002 14:02:50 +0000 (+0000) Subject: fix the type of the pointer returned by the hash lookup X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e90ec6b82d343c93c6ba0046d81e07e29e439cd;p=apache 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 --- 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);