mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Fix compilation for LWIP_EVENT_API
Without LWIP_CALLBACK_API, is no error callback function pointer in the TCP PCB, nor is it needed, so do not attempt to access it.
This commit is contained in:
parent
fa8797b86d
commit
fc66fb830c
@ -1094,7 +1094,9 @@ tcp_slowtmr_start:
|
||||
/* If the PCB should be removed, do it. */
|
||||
if (pcb_remove) {
|
||||
struct tcp_pcb *pcb2;
|
||||
#if LWIP_CALLBACK_API
|
||||
tcp_err_fn err_fn;
|
||||
#endif /* LWIP_CALLBACK_API */
|
||||
void *err_arg;
|
||||
tcp_pcb_purge(pcb);
|
||||
/* Remove PCB from tcp_active_pcbs list. */
|
||||
@ -1112,7 +1114,9 @@ tcp_slowtmr_start:
|
||||
pcb->local_port, pcb->remote_port);
|
||||
}
|
||||
|
||||
#if LWIP_CALLBACK_API
|
||||
err_fn = pcb->errf;
|
||||
#endif /* LWIP_CALLBACK_API */
|
||||
err_arg = pcb->callback_arg;
|
||||
pcb2 = pcb;
|
||||
pcb = pcb->next;
|
||||
|
Loading…
Reference in New Issue
Block a user