From: Stefan Fritsch Date: Tue, 13 Dec 2011 05:53:50 +0000 (+0000) Subject: Explicitly cast function pointer, to remove 'const'. X-Git-Tag: 2.5.0-alpha~7682 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6d10318858ee9af0206843fa9de9542a9d78995;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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;