From 8f3df7c862e496ae3beab0254fab8bdbd63cbe04 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 17 May 2018 20:57:02 +0200 Subject: [PATCH] tcp: fix const warning for LWIP_NETIF_HWADDRHINT==1 --- src/core/tcp_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {