]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
one more fix for fr_map_list_t
authorAlan T. DeKok <aland@freeradius.org>
Fri, 10 Dec 2021 21:09:08 +0000 (16:09 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 10 Dec 2021 21:09:08 +0000 (16:09 -0500)
src/bin/unit_test_map.c

index c7bd2ff7652c25406b32570a0bc06e3b3d5068b7..34872a0edc36d391134bf4dbc8fccfd7b46513d3 100644 (file)
@@ -122,7 +122,7 @@ static int process_file(char const *filename)
                cf_log_perr(cs, "map_afrom_cs failed");
                return EXIT_FAILURE; /* message already printed */
        }
-       if (fr_dlist_empty(&list)) {
+       if (fr_map_list_empty(&list)) {
                cf_log_err(cs, "'update' sections cannot be empty");
                return EXIT_FAILURE;
        }
@@ -141,7 +141,7 @@ static int process_file(char const *filename)
                printf("%s %s {\n", name1, name2);
        }
 
-       while ((map = fr_dlist_next(&list, map))) {
+       while ((map = fr_map_list_next(&list, map))) {
                map_print(&FR_SBUFF_OUT(buffer + 1, sizeof(buffer) - 1), map);
                puts(buffer);
        }