From 7b45f3fa3fcbf7e7997c732cf8d13b9d469c6d1b Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 13 Jun 2017 22:04:57 +0200 Subject: [PATCH] Fix sys_timeouts_init() for LWIP_TCP==0 (see patch #9375) --- src/core/timeouts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/timeouts.c b/src/core/timeouts.c index 227d71fc..8bf209a5 100644 --- a/src/core/timeouts.c +++ b/src/core/timeouts.c @@ -176,7 +176,7 @@ void sys_timeouts_init(void) { size_t i; /* tcp_tmr() at index 0 is started on demand */ - for (i = 1; i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) { + for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) { /* we have to cast via size_t to get rid of const warning (this is OK as cyclic_timer() casts back to const* */ sys_timeout(lwip_cyclic_timers[i].interval_ms, cyclic_timer, LWIP_CONST_CAST(void*, &lwip_cyclic_timers[i]));