diff --git a/src/core/netif.c b/src/core/netif.c index 819dab71..a417f0a4 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -583,7 +583,7 @@ netif_loop_output(struct netif *netif, struct pbuf *p, #if LWIP_NETIF_LOOPBACK_MULTITHREADING /* For multithreading environment, schedule a call to netif_poll */ - tcpip_callback(netif_poll, netif); + tcpip_callback((void (*)(void *))(netif_poll), netif); #endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */ return ERR_OK;