]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use a type handled by FR_TYPE_FROM_PTR
authorNick Porter <nick@portercomputing.co.uk>
Thu, 24 Jul 2025 12:43:41 +0000 (13:43 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 24 Jul 2025 12:50:27 +0000 (13:50 +0100)
src/lib/unlang/map_builtin.c

index 6ba4df1d0880f20a278050d8cef28a088dff78ec..97fec54e1b25fe0f6a5d2aab4e173b2fbedbb74e 100644 (file)
@@ -68,7 +68,7 @@ static unlang_action_t mod_list_map_proc(unlang_result_t *p_result, UNUSED map_c
        rlm_rcode_t             rcode = RLM_MODULE_NOOP;
        fr_value_box_t          *vb = NULL;
        fr_value_box_t          **values;
-       size_t                  index, i = 0, value_count = fr_value_box_list_num_elements(in);
+       uint32_t                index, i = 0, value_count = fr_value_box_list_num_elements(in);
        TALLOC_CTX              *local = talloc_new(NULL);
        map_t                   *map = NULL;
 
@@ -92,11 +92,11 @@ static unlang_action_t mod_list_map_proc(unlang_result_t *p_result, UNUSED map_c
                        goto finish;
                }
                if (index > value_count) {
-                       RWARN("Asked for index %ld when max is %ld.", index, value_count);
+                       RWARN("Asked for index %d when max is %d.", index, value_count);
                        continue;
                }
                if (values[index]->type == FR_TYPE_NULL) {
-                       RDEBUG2("Skipping null value for index %ld.", index);
+                       RDEBUG2("Skipping null value for index %d.", index);
                        continue;
                }