From b4768f171119a3093aa4e45ff721bec112e15d09 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Mon, 8 Jan 2018 08:34:17 +0100 Subject: [PATCH] Once again: Fix build warnings in test_timers.c --- test/unit/core/test_timers.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/unit/core/test_timers.c b/test/unit/core/test_timers.c index e8318063..c035d49c 100644 --- a/test/unit/core/test_timers.c +++ b/test/unit/core/test_timers.c @@ -25,7 +25,8 @@ timers_teardown(void) } static int fired[3]; -static void dummy_handler(void* arg) +static void +dummy_handler(void* arg) { int index = LWIP_PTR_NUMERIC_CAST(int, arg); fired[index] = 1; @@ -33,7 +34,8 @@ static void dummy_handler(void* arg) #define HANDLER_EXECUTION_TIME 5 static int cyclic_fired; -static void dummy_cyclic_handler(void) +static void +dummy_cyclic_handler(void) { cyclic_fired = 1; lwip_sys_now += HANDLER_EXECUTION_TIME; @@ -41,7 +43,8 @@ static void dummy_cyclic_handler(void) struct lwip_cyclic_timer test_cyclic = {10, dummy_cyclic_handler}; -void do_test_cyclic_timers(u32_t offset) +static void +do_test_cyclic_timers(u32_t offset) { struct sys_timeo** list_head = lwip_sys_timers_get_next_timout(); @@ -121,7 +124,8 @@ START_TEST(test_bug52748) } END_TEST -void do_test_timers(u32_t offset) +static void +do_test_timers(u32_t offset) { struct sys_timeo** list_head = lwip_sys_timers_get_next_timout();