From 9caea3205cbd99649bd9b9eca4e9322f058d4a98 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 8 Dec 2022 10:32:08 +0100 Subject: [PATCH] ipa-otpd: suppress "function declaration isn't a prototype" warning Reviewed-By: Alexander Bokovoy --- daemons/ipa-otpd/ipa_otpd_queue_cmocka_tests.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/daemons/ipa-otpd/ipa_otpd_queue_cmocka_tests.c b/daemons/ipa-otpd/ipa_otpd_queue_cmocka_tests.c index 068431e64..ecb5da003 100644 --- a/daemons/ipa-otpd/ipa_otpd_queue_cmocka_tests.c +++ b/daemons/ipa-otpd/ipa_otpd_queue_cmocka_tests.c @@ -69,7 +69,7 @@ static void assert_elt_equal(struct otpd_queue_item *e1, assert_int_equal(e1->msgid, e2->msgid); } -static void test_single_insert() +static void test_single_insert(void **state) { struct otpd_queue q = { NULL }; struct otpd_queue_item *ein, *eout; @@ -90,7 +90,7 @@ static void test_single_insert() free_elts(&q); } -static void test_jump_insert() +static void test_jump_insert(void **state) { struct otpd_queue q = { NULL }; struct otpd_queue_item *echeck; @@ -106,7 +106,7 @@ static void test_jump_insert() free_elts(&q); } -static void test_garbage_insert() +static void test_garbage_insert(void **state) { struct otpd_queue q = { NULL }; struct otpd_queue_item *e, *g; @@ -121,7 +121,7 @@ static void test_garbage_insert() free_elts(&q); } -static void test_removal() +static void test_removal(void **state) { struct otpd_queue q = { NULL }; @@ -149,7 +149,7 @@ static void pick_id(struct otpd_queue *q, int msgid) e = otpd_queue_pop_msgid(q, msgid); assert_ptr_equal(e, NULL); } -static void test_pick_removal() +static void test_pick_removal(void **state) { struct otpd_queue q = { NULL }; @@ -166,7 +166,7 @@ static void test_pick_removal() free_elts(&q); } -static void test_iter() +static void test_iter(void **state) { krb5_error_code ret; struct otpd_queue q = { NULL };