mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
Fix sys_timeouts_init() for LWIP_TCP==0 (see patch #9375)
(cherry picked from commit 7b45f3fa3f
)
This commit is contained in:
parent
e6fa613633
commit
32aa50cfbc
@ -176,7 +176,7 @@ void sys_timeouts_init(void)
|
|||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
/* tcp_tmr() at index 0 is started on demand */
|
/* 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
|
/* we have to cast via size_t to get rid of const warning
|
||||||
(this is OK as cyclic_timer() casts back to const* */
|
(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]));
|
sys_timeout(lwip_cyclic_timers[i].interval_ms, cyclic_timer, LWIP_CONST_CAST(void*, &lwip_cyclic_timers[i]));
|
||||||
|
Loading…
Reference in New Issue
Block a user