mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Fix compilation for LWIP_EVENT_API==1 (unused args)
This commit is contained in:
parent
d8d964d09e
commit
874d1641df
@ -712,6 +712,8 @@ tcp_connect(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port,
|
||||
pcb->ssthresh = pcb->mss * 10;
|
||||
#if LWIP_CALLBACK_API
|
||||
pcb->connected = connected;
|
||||
#else /* LWIP_CALLBACK_API */
|
||||
LWIP_UNUSED_ARG(connected);
|
||||
#endif /* LWIP_CALLBACK_API */
|
||||
|
||||
/* Send a SYN together with the MSS option. */
|
||||
@ -1334,6 +1336,8 @@ tcp_poll(struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval)
|
||||
{
|
||||
#if LWIP_CALLBACK_API
|
||||
pcb->poll = poll;
|
||||
#else /* LWIP_CALLBACK_API */
|
||||
LWIP_UNUSED_ARG(poll);
|
||||
#endif /* LWIP_CALLBACK_API */
|
||||
pcb->pollinterval = interval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user