mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-06 06:39:46 +00:00
Fix build error introduced in my last commit
This commit is contained in:
parent
c7e3519f46
commit
6a754325dc
@ -2922,12 +2922,12 @@ lwip_setsockopt_impl(int s, int level, int optname, const void *optval, socklen_
|
|||||||
#endif /* LWIP_UDP */
|
#endif /* LWIP_UDP */
|
||||||
case SO_BINDTODEVICE:
|
case SO_BINDTODEVICE:
|
||||||
{
|
{
|
||||||
struct ifreq *iface;
|
const struct ifreq *iface;
|
||||||
struct netif* n = NULL;
|
struct netif* n = NULL;
|
||||||
|
|
||||||
LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, struct ifreq);
|
LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, struct ifreq);
|
||||||
|
|
||||||
iface = (struct ifreq*)optval;
|
iface = (const struct ifreq*)optval;
|
||||||
if (iface->ifr_name[0] != 0) {
|
if (iface->ifr_name[0] != 0) {
|
||||||
n = netif_find(iface->ifr_name);
|
n = netif_find(iface->ifr_name);
|
||||||
if (n == NULL) {
|
if (n == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user