]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use consistent names
authorAlan T. DeKok <aland@freeradius.org>
Fri, 1 Jul 2022 13:26:43 +0000 (09:26 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 2 Jul 2022 15:18:58 +0000 (11:18 -0400)
src/lib/unlang/xlat_expr.c

index 83e5432fb1bb2d9a9b4a7db6d26e5b974df2cdf2..a8f03d2a42e8b27c8d49b1599e9849c2ca7b687e 100644 (file)
@@ -1233,22 +1233,22 @@ static xlat_arg_parser_t const xlat_func_rcode_arg = {
  */
 static xlat_action_t xlat_func_rcode(TALLOC_CTX *ctx, fr_dcursor_t *out,
                                     UNUSED xlat_ctx_t const *xctx,
-                                    request_t *request, fr_value_box_list_t *args)
+                                    request_t *request, fr_value_box_list_t *in)
 {
        fr_value_box_t  *vb;
-       fr_value_box_t  *in = fr_dlist_head(args);
+       fr_value_box_t  *src = fr_dlist_head(in);
 
        /*
         *      Query the rcode if there's no argument.  Otherwise do a boolean check if the passed string
         *      matches the current rcode.
         */
-       if (!in) {
+       if (!src) {
                MEM(vb = fr_value_box_alloc(ctx, FR_TYPE_UINT32, attr_module_return_code, false));
                vb->datum.int32 = request->rcode;
        } else {
                rlm_rcode_t rcode;
 
-               rcode = fr_table_value_by_str(rcode_table, in->vb_strvalue, RLM_MODULE_NOT_SET);
+               rcode = fr_table_value_by_str(rcode_table, src->vb_strvalue, RLM_MODULE_NOT_SET);
 
                MEM(vb = fr_value_box_alloc(ctx, FR_TYPE_BOOL, attr_expr_bool_enum, false));
                vb->vb_bool = (request->rcode == rcode);