From ecbba54e6549d996061391d50452ea7a1d47c9e2 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 13 Dec 2011 05:53:50 +0000 Subject: [PATCH] Explicitly cast function pointer, to remove 'const'. Hopefully this makes the NetWare compiler happy. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1213567 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_expr_eval.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/util_expr_eval.c b/server/util_expr_eval.c index abf3bdb4720..3f0460c9114 100644 --- a/server/util_expr_eval.c +++ b/server/util_expr_eval.c @@ -89,7 +89,8 @@ static const char *ap_expr_eval_word(ap_expr_eval_ctx_t *ctx, result = node->node_arg1; break; case op_Var: - result = ap_expr_eval_var(ctx, node->node_arg1, node->node_arg2); + result = ap_expr_eval_var(ctx, (ap_expr_var_func_t *)node->node_arg1, + node->node_arg2); break; case op_Concat: if (((ap_expr_t *)node->node_arg2)->node_op != op_Concat) { @@ -674,7 +675,7 @@ static void expr_dump_tree(const ap_expr_t *e, const server_rec *s, static int ap_expr_eval_unary_op(ap_expr_eval_ctx_t *ctx, const ap_expr_t *info, const ap_expr_t *arg) { - ap_expr_op_unary_t *op_func = info->node_arg1; + ap_expr_op_unary_t *op_func = (ap_expr_op_unary_t *)info->node_arg1; const void *data = info->node_arg2; AP_DEBUG_ASSERT(info->node_op == op_UnaryOpInfo); @@ -687,7 +688,7 @@ static int ap_expr_eval_binary_op(ap_expr_eval_ctx_t *ctx, const ap_expr_t *info, const ap_expr_t *args) { - ap_expr_op_binary_t *op_func = info->node_arg1; + ap_expr_op_binary_t *op_func = (ap_expr_op_binary_t *)info->node_arg1; const void *data = info->node_arg2; const ap_expr_t *a1 = args->node_arg1; const ap_expr_t *a2 = args->node_arg2; -- 2.47.3