mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 18:27:56 +08:00
net: Align the prototype of sock_intf_s::si_ioctl with file_operations::ioctl
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -1586,15 +1586,7 @@ static int netdev_ioctl(FAR struct socket *psock, int cmd,
|
||||
{
|
||||
if (psock->s_sockif && psock->s_sockif->si_ioctl)
|
||||
{
|
||||
ssize_t arglen;
|
||||
|
||||
arglen = net_ioctl_arglen(cmd);
|
||||
if (arglen < 0)
|
||||
{
|
||||
return arglen;
|
||||
}
|
||||
|
||||
return psock->s_sockif->si_ioctl(psock, cmd, (FAR void *)arg, arglen);
|
||||
return psock->s_sockif->si_ioctl(psock, cmd, arg);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user