From 18a48592cad6d070325356743079f519a93b0cf8 Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Tue, 30 Sep 2003 15:22:41 +0000 Subject: [PATCH] Match type of both arguments (get rid of compiler warning) in x ? y : z expression git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101357 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_rewrite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index e62e22c559..5ccee38c5b 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -2049,7 +2049,7 @@ static char *do_expand(char *input, rewrite_ctx *ctx) if (current->len) { current->next = (spc < SMALL_EXPANSION) ? &(sresult[spc++]) - : apr_palloc(pool, sizeof(result_list)); + : (result_list *)apr_palloc(pool, sizeof(result_list)); current = current->next; current->next = NULL; current->len = 0; @@ -2176,7 +2176,7 @@ static char *do_expand(char *input, rewrite_ctx *ctx) if (current->len) { current->next = (spc < SMALL_EXPANSION) ? &(sresult[spc++]) - : apr_palloc(pool, sizeof(result_list)); + : (result_list *)apr_palloc(pool, sizeof(result_list)); current = current->next; current->next = NULL; } -- 2.50.1