From: Arran Cudbard-Bell Date: Sat, 30 Oct 2021 21:48:23 +0000 (-0400) Subject: Just use the normal intialisation macro... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43a522bb3f8224e93e46134a6ef7960ec55eac09;p=thirdparty%2Ffreeradius-server.git Just use the normal intialisation macro... --- diff --git a/src/lib/util/cursor_tests.c b/src/lib/util/cursor_tests.c index 18208f3848b..f5b30d7bf28 100644 --- a/src/lib/util/cursor_tests.c +++ b/src/lib/util/cursor_tests.c @@ -779,7 +779,7 @@ static void test_cursor_remove_empty(void) fr_cursor_t cursor; test_item_t *head = NULL; - _fr_cursor_init(&cursor, (void **)&head, offsetof(test_item_t, next), test_iter, &cursor, NULL); + fr_cursor_init(&cursor, &head); TEST_CHECK(!fr_cursor_remove(&cursor)); }