diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index 80acf227..c8ae4e34 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -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 {