Call tcp_timer_needed() with NO_SYS==1, too

This commit is contained in:
goldsimon 2010-01-07 09:47:30 +00:00
parent cfe4a12a46
commit cce192a671
3 changed files with 3 additions and 6 deletions

View File

@ -33,6 +33,9 @@ HISTORY
++ Bugfixes:
2010-01-07: Simon Goldschmidt
* timers.c, tcp.h: Call tcp_timer_needed() with NO_SYS==1, too
2010-01-06: Simon Goldschmidt
* netdb.h: Fixed bug #28496: missing include guards in netdb.h

View File

@ -87,7 +87,6 @@ tcpip_tcp_timer(void *arg)
}
}
#if !NO_SYS
/**
* Called from TCP_REG when registering a new PCB:
* the reason is to have the TCP timer only running when
@ -103,7 +102,6 @@ tcp_timer_needed(void)
sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
}
}
#endif /* !NO_SYS */
#endif /* LWIP_TCP */
#if IP_REASSEMBLY

View File

@ -610,11 +610,7 @@ s16_t tcp_pcbs_sane(void);
# define tcp_pcbs_sane() 1
#endif /* TCP_DEBUG */
#if NO_SYS
#define tcp_timer_needed()
#else
void tcp_timer_needed(void);
#endif
/* The TCP PCB lists. */
union tcp_listen_pcbs_t { /* List of all TCP PCBs in LISTEN state. */