]> granicus.if.org Git - apache/commitdiff
fix the type of the pointer returned by the hash lookup
authorJeff Trawick <trawick@apache.org>
Mon, 6 May 2002 14:02:50 +0000 (14:02 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 6 May 2002 14:02:50 +0000 (14:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94961 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index 0acb04ef141ec6ca3870c69ac4c0373ff3dfe26b..b0cdef5ff99cfe2596b22e2a359c80f75ef1c603 100644 (file)
@@ -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);