Commit a40cec95 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

void * isn't compatible with a function pointer; deal with retrieving a

function pointer from apr_hash_get()


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89263 13f79535-47bb-0310-9956-ffa450edef68
parent 91943a84
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ static char *parse_misc_string(apr_pool_t *p, format_tag *tag, const char **sa)
static char *parse_format_tag(apr_pool_t *p, format_tag *tag, const char **sa)
{ 
    const char *s = *sa;
    void *tag_handler;
    const char * (*tag_handler)(request_rec *,char *);
    
    /* Handle string literal/conditionals */
    if (*s != '%') {
@@ -289,7 +289,7 @@ static char *parse_format_tag(apr_pool_t *p, format_tag *tag, const char **sa)
    }
    s++; /* skip the % */

    tag_handler = apr_hash_get(format_tag_hash, s++, 1);
    tag_handler = (const char * (*)(request_rec *,char *))apr_hash_get(format_tag_hash, s++, 1);

    if (!tag_handler) {
        char dummy[2];