net/inet/inet_sockif.c: Fix compiler warning noted by Xiang Xiao

This commit is contained in:
Jussi Kivilinna
2018-09-14 09:04:25 -06:00
committed by Gregory Nutt
parent dc48263a6a
commit 17b0c9b6b0
+4
View File
@@ -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
****************************************************************************/ ****************************************************************************/