From: Alan T. DeKok Date: Wed, 1 Jun 2022 14:05:06 +0000 (-0400) Subject: add "const" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0928dd6f184d843e943279591f2256c19eb49623;p=thirdparty%2Ffreeradius-server.git add "const" --- diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index 034be26631d..79d4df9a7fb 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -539,7 +539,7 @@ static xlat_action_t xlat_regex_op(TALLOC_CTX *ctx, fr_dcursor_t *out, request_t *request, fr_value_box_list_t *in, fr_token_t op) { - xlat_regex_inst_t *inst = talloc_get_type_abort(xctx->inst, xlat_regex_inst_t); + xlat_regex_inst_t const *inst = talloc_get_type_abort_const(xctx->inst, xlat_regex_inst_t); xlat_regex_rctx_t *rctx; regex_t *preg; fr_value_box_t *lhs;