From 7d9868464f1262b5716cbe4f75c44bcb7c6ae43f Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Fri, 10 Dec 2021 16:09:08 -0500 Subject: [PATCH] one more fix for fr_map_list_t --- src/bin/unit_test_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.47.2