mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
Argument of network device IOCTL should be unsigned long, just as will all other IOCTL methods.
This commit is contained in:
@@ -385,7 +385,7 @@ static int netdev_wifrioctl(FAR struct socket *psock, int cmd,
|
||||
{
|
||||
/* Just forward the IOCTL to the wireless driver */
|
||||
|
||||
ret = dev->d_ioctl(dev, cmd, ((long)(uintptr_t)req));
|
||||
ret = dev->d_ioctl(dev, cmd, ((unsigned long)(uintptr_t)req));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -827,7 +827,7 @@ static int netdev_ifrioctl(FAR struct socket *psock, int cmd,
|
||||
if (dev && dev->d_ioctl)
|
||||
{
|
||||
struct mii_iotcl_notify_s *notify = &req->ifr_ifru.ifru_mii_notify;
|
||||
ret = dev->d_ioctl(dev, cmd, ((long)(uintptr_t)notify));
|
||||
ret = dev->d_ioctl(dev, cmd, ((unsigned long)(uintptr_t)notify));
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -841,7 +841,7 @@ static int netdev_ifrioctl(FAR struct socket *psock, int cmd,
|
||||
if (dev && dev->d_ioctl)
|
||||
{
|
||||
struct mii_ioctl_data_s *mii_data = &req->ifr_ifru.ifru_mii_data;
|
||||
ret = dev->d_ioctl(dev, cmd, ((long)(uintptr_t)mii_data));
|
||||
ret = dev->d_ioctl(dev, cmd, ((unsigned long)(uintptr_t)mii_data));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user