From: Alan T. DeKok Date: Thu, 4 Nov 2021 17:46:41 +0000 (-0400) Subject: add const X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c8ea0148f6a177885313b797f7f2201d00e5c4e;p=thirdparty%2Ffreeradius-server.git add const --- diff --git a/src/lib/unlang/xlat_builtin.c b/src/lib/unlang/xlat_builtin.c index 30149395351..b8424af4187 100644 --- a/src/lib/unlang/xlat_builtin.c +++ b/src/lib/unlang/xlat_builtin.c @@ -542,7 +542,7 @@ static xlat_action_t xlat_redundant(TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_t *xlat; memcpy(&xr, xlat_inst, sizeof(xr)); - xr = talloc_get_type_abort(xr, xlat_redundant_t); + xr = talloc_get_type_abort_const(xr, xlat_redundant_t); fr_assert(xr->type == XLAT_REDUNDANT); @@ -594,7 +594,7 @@ static xlat_action_t xlat_load_balance(TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_t *xlat; memcpy(&xr, xlat_inst, sizeof(xr)); - xr = talloc_get_type_abort(xr, xlat_redundant_t); + xr = talloc_get_type_abort_const(xr, xlat_redundant_t); /* * Choose a child at random.