Rename lwip_sys_timers_get_next_timout() to sys_timeouts_get_next_timeout()

This commit is contained in:
Dirk Ziegelmeier 2018-01-11 09:53:07 +01:00
parent c257b56a39
commit b6b14438b7
3 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ static u32_t current_timeout_due_time;
#if LWIP_TESTMODE #if LWIP_TESTMODE
struct sys_timeo** struct sys_timeo**
lwip_sys_timers_get_next_timout(void) sys_timeouts_get_next_timeout(void)
{ {
return &next_timeout; return &next_timeout;
} }

View File

@ -115,7 +115,7 @@ void sys_check_timeouts(void);
u32_t sys_timeouts_sleeptime(void); u32_t sys_timeouts_sleeptime(void);
#if LWIP_TESTMODE #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); void lwip_cyclic_timer(void *arg);
#endif #endif

View File

@ -11,7 +11,7 @@ static struct sys_timeo* old_list_head;
static void static void
timers_setup(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; old_list_head = *list_head;
*list_head = NULL; *list_head = NULL;
} }
@ -19,7 +19,7 @@ timers_setup(void)
static void static void
timers_teardown(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; *list_head = old_list_head;
lwip_sys_now = 0; lwip_sys_now = 0;
} }
@ -46,7 +46,7 @@ struct lwip_cyclic_timer test_cyclic = {10, dummy_cyclic_handler};
static void static void
do_test_cyclic_timers(u32_t offset) 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 */ /* verify normal timer expiration */
lwip_sys_now = offset + 0; lwip_sys_now = offset + 0;
@ -127,7 +127,7 @@ END_TEST
static void static void
do_test_timers(u32_t offset) 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; lwip_sys_now = offset + 0;