mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
net/inet/inet_sockif.c: Fix compiler warning noted by Xiang Xiao
This commit is contained in:
committed by
Gregory Nutt
parent
dc48263a6a
commit
17b0c9b6b0
@@ -62,6 +62,8 @@
|
|||||||
* Private Function Prototypes
|
* Private Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#if defined(NET_UDP_HAVE_STACK) || defined(NET_TCP_HAVE_STACK)
|
||||||
|
|
||||||
static int inet_setup(FAR struct socket *psock, int protocol);
|
static int inet_setup(FAR struct socket *psock, int protocol);
|
||||||
static sockcaps_t inet_sockcaps(FAR struct socket *psock);
|
static sockcaps_t inet_sockcaps(FAR struct socket *psock);
|
||||||
static void inet_addref(FAR struct socket *psock);
|
static void inet_addref(FAR struct socket *psock);
|
||||||
@@ -1289,6 +1291,8 @@ static ssize_t inet_sendfile(FAR struct socket *psock,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* NET_UDP_HAVE_STACK || NET_TCP_HAVE_STACK */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user