net/socket/send: fix building without CONFIG_NET_6LOWPAN

This commit is contained in:
Jussi Kivilinna 2017-04-03 07:36:29 -06:00 committed by Gregory Nutt
parent dfe6a672c1
commit ae1265c01e

View File

@ -124,7 +124,7 @@
ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len, ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len,
int flags) int flags)
{ {
int ret; ssize_t ret;
/* Treat as a cancellation point */ /* Treat as a cancellation point */
@ -175,9 +175,9 @@ ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len,
} }
#endif /* CONFIG_NETDEV_MULTINIC && NET_TCP_HAVE_STACK */ #endif /* CONFIG_NETDEV_MULTINIC && NET_TCP_HAVE_STACK */
#elif defined(NET_TCP_HAVE_STACK) #elif defined(NET_TCP_HAVE_STACK)
nsent = psock_tcp_send(psock, buf, len, flags, to, tolen); ret = psock_tcp_send(psock, buf, len);
#else #else
nsent = -ENOSYS; ret = -ENOSYS;
#endif /* CONFIG_NET_6LOWPAN */ #endif /* CONFIG_NET_6LOWPAN */
} }
#endif /* CONFIG_NET_TCP */ #endif /* CONFIG_NET_TCP */