diff --git a/net/usrsock/usrsock.h b/net/usrsock/usrsock.h index 1fe951e1edb..bb717f91edf 100644 --- a/net/usrsock/usrsock.h +++ b/net/usrsock/usrsock.h @@ -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 diff --git a/net/usrsock/usrsock_sockif.c b/net/usrsock/usrsock_sockif.c index 081287434b5..b809286bf6b 100644 --- a/net/usrsock/usrsock_sockif.c +++ b/net/usrsock/usrsock_sockif.c @@ -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 */ };