net/usrsock: fix build warning
usrsock/usrsock_sockif.c:72:3: warning: initialization of ‘int (*)(struct socket **)’ from incompatible pointer type ‘int (*)(struct socket *, int, void *, size_t)’ {aka ‘int (*)(struct socket *, int, void *, long unsigned int)’} [-Wincompatible-pointer-types] 72 | usrsock_ioctl /* si_ioctl */ | ^~~~~~~~~~~~~ Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
630c209bbc
commit
086fb829fd
@ -69,7 +69,7 @@ enum usrsock_conn_state_e
|
||||
USRSOCK_CONN_STATE_UNINITIALIZED = 0,
|
||||
USRSOCK_CONN_STATE_ABORTED,
|
||||
USRSOCK_CONN_STATE_READY,
|
||||
USRSOCK_CONN_STATE_CONNECTING,
|
||||
USRSOCK_CONN_STATE_CONNECTING
|
||||
};
|
||||
|
||||
struct usrsock_poll_s
|
||||
|
@ -66,9 +66,6 @@ const struct sock_intf_s g_usrsock_sockif =
|
||||
usrsock_sendmsg, /* si_sendmsg */
|
||||
usrsock_recvmsg, /* si_recvmsg */
|
||||
usrsock_sockif_close, /* si_close */
|
||||
#ifdef CONFIG_NET_SENDFILE
|
||||
NULL, /* si_sendfile */
|
||||
#endif
|
||||
usrsock_ioctl /* si_ioctl */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user