From: Alan T. DeKok Date: Fri, 10 Dec 2021 21:09:08 +0000 (-0500) Subject: one more fix for fr_map_list_t X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d9868464f1262b5716cbe4f75c44bcb7c6ae43f;p=thirdparty%2Ffreeradius-server.git one more fix for fr_map_list_t --- diff --git a/src/bin/unit_test_map.c b/src/bin/unit_test_map.c index c7bd2ff765..34872a0edc 100644 --- a/src/bin/unit_test_map.c +++ b/src/bin/unit_test_map.c @@ -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); }