]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add const
authorAlan T. DeKok <aland@freeradius.org>
Thu, 4 Nov 2021 17:46:41 +0000 (13:46 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 4 Nov 2021 17:46:41 +0000 (13:46 -0400)
src/lib/unlang/xlat_builtin.c

index 3014939535117888449fa0e1898f589ddf97aa90..b8424af41874a33e267cc53c92745c0655623c61 100644 (file)
@@ -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.