From 6a754325dcc77ccd18cb14a400507374310f0271 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 2 May 2017 14:53:18 +0200 Subject: [PATCH] Fix build error introduced in my last commit --- src/api/sockets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index b90d6e10..0d3455bb 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -2922,12 +2922,12 @@ lwip_setsockopt_impl(int s, int level, int optname, const void *optval, socklen_ #endif /* LWIP_UDP */ case SO_BINDTODEVICE: { - struct ifreq *iface; + const struct ifreq *iface; struct netif* n = NULL; LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, struct ifreq); - iface = (struct ifreq*)optval; + iface = (const struct ifreq*)optval; if (iface->ifr_name[0] != 0) { n = netif_find(iface->ifr_name); if (n == NULL) {