tcp: fix const warning for LWIP_NETIF_HWADDRHINT==1

This commit is contained in:
goldsimon 2018-05-17 20:57:02 +02:00
parent ec8c764fcb
commit 8f3df7c862

View File

@ -1875,7 +1875,7 @@ tcp_output_control_segment(const struct tcp_pcb *pcb, struct pbuf *p,
}
#endif
if (pcb != NULL) {
NETIF_SET_HINTS(netif, &(pcb->netif_hints));
NETIF_SET_HINTS(netif, LWIP_CONST_CAST(struct netif_hint*, &(pcb->netif_hints)));
ttl = pcb->ttl;
tos = pcb->tos;
} else {