diff --git a/src/core/timeouts.c b/src/core/timeouts.c index 4a71d430..71811b16 100644 --- a/src/core/timeouts.c +++ b/src/core/timeouts.c @@ -121,7 +121,7 @@ static u32_t current_timeout_due_time; #if LWIP_TESTMODE struct sys_timeo** -lwip_sys_timers_get_next_timout(void) +sys_timeouts_get_next_timeout(void) { return &next_timeout; } diff --git a/src/include/lwip/timeouts.h b/src/include/lwip/timeouts.h index eadefb89..b601f9eb 100644 --- a/src/include/lwip/timeouts.h +++ b/src/include/lwip/timeouts.h @@ -115,7 +115,7 @@ void sys_check_timeouts(void); u32_t sys_timeouts_sleeptime(void); #if LWIP_TESTMODE -struct sys_timeo** lwip_sys_timers_get_next_timout(void); +struct sys_timeo** sys_timeouts_get_next_timeout(void); void lwip_cyclic_timer(void *arg); #endif diff --git a/test/unit/core/test_timers.c b/test/unit/core/test_timers.c index f0bf91bd..39804230 100644 --- a/test/unit/core/test_timers.c +++ b/test/unit/core/test_timers.c @@ -11,7 +11,7 @@ static struct sys_timeo* old_list_head; static void timers_setup(void) { - struct sys_timeo** list_head = lwip_sys_timers_get_next_timout(); + struct sys_timeo** list_head = sys_timeouts_get_next_timeout(); old_list_head = *list_head; *list_head = NULL; } @@ -19,7 +19,7 @@ timers_setup(void) static void timers_teardown(void) { - struct sys_timeo** list_head = lwip_sys_timers_get_next_timout(); + struct sys_timeo** list_head = sys_timeouts_get_next_timeout(); *list_head = old_list_head; lwip_sys_now = 0; } @@ -46,7 +46,7 @@ struct lwip_cyclic_timer test_cyclic = {10, dummy_cyclic_handler}; static void do_test_cyclic_timers(u32_t offset) { - struct sys_timeo** list_head = lwip_sys_timers_get_next_timout(); + struct sys_timeo** list_head = sys_timeouts_get_next_timeout(); /* verify normal timer expiration */ lwip_sys_now = offset + 0; @@ -127,7 +127,7 @@ END_TEST static void do_test_timers(u32_t offset) { - struct sys_timeo** list_head = lwip_sys_timers_get_next_timout(); + struct sys_timeo** list_head = sys_timeouts_get_next_timeout(); lwip_sys_now = offset + 0;