PktRadio loopback driver: Fix compile problem by removing inappropriate const storage class.
This commit is contained in:
parent
0cf6ff5d3c
commit
70911c3f52
@ -774,7 +774,7 @@ static int lo_ioctl(FAR struct net_driver_s *dev, int cmd,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FAR const struct netdev_varaddr_s *devaddr = &dev->d_mac.radio;
|
FAR struct netdev_varaddr_s *devaddr = &dev->d_mac.radio;
|
||||||
|
|
||||||
devaddr->nv_addrlen = 1;
|
devaddr->nv_addrlen = 1;
|
||||||
devaddr->nv_addr[0] = newaddr->pa_addr[0];
|
devaddr->nv_addr[0] = newaddr->pa_addr[0];
|
||||||
@ -814,6 +814,7 @@ static int lo_ioctl(FAR struct net_driver_s *dev, int cmd,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UNUSED(priv);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user