net/usrsock: fix compiler warnings, mostly about nxsem_post

This commit is contained in:
Juha Niskanen
2017-10-25 07:31:14 -06:00
committed by Gregory Nutt
parent 31f3f990c3
commit c0bf0b4d9d
15 changed files with 14 additions and 31 deletions
-1
View File
@@ -110,7 +110,6 @@ int psock_getsockopt(FAR struct socket *psock, int level, int option,
if (psock->s_type == SOCK_USRSOCK_TYPE)
{
FAR struct usrsock_conn_s *conn = psock->s_conn;
int ret;
DEBUGASSERT(conn);
-1
View File
@@ -120,7 +120,6 @@ int psock_setsockopt(FAR struct socket *psock, int level, int option,
if (psock->s_type == SOCK_USRSOCK_TYPE)
{
FAR struct usrsock_conn_s *conn = psock->s_conn;
int ret;
DEBUGASSERT(conn);
+1 -3
View File
@@ -42,7 +42,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -50,11 +49,10 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
#include <nuttx/kmalloc.h>
#include "socket/socket.h"
#include "usrsock/usrsock.h"
/****************************************************************************
+1 -1
View File
@@ -42,7 +42,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -50,6 +49,7 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
+2 -2
View File
@@ -42,13 +42,13 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <arch/irq.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/net.h>
@@ -60,7 +60,7 @@
/* The array containing all usrsock connections. */
struct usrsock_conn_s g_usrsock_connections[CONFIG_NET_USRSOCK_CONNS];
static struct usrsock_conn_s g_usrsock_connections[CONFIG_NET_USRSOCK_CONNS];
/* A list of all free usrsock connections */
+1 -3
View File
@@ -42,7 +42,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -50,11 +49,10 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
#include <nuttx/kmalloc.h>
#include "socket/socket.h"
#include "usrsock/usrsock.h"
/****************************************************************************
+1 -1
View File
@@ -44,7 +44,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <unistd.h>
#include <semaphore.h>
#include <string.h>
#include <poll.h>
#include <errno.h>
@@ -55,6 +54,7 @@
#include <nuttx/random.h>
#include <nuttx/fs/fs.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
+1 -1
View File
@@ -42,7 +42,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -50,6 +49,7 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
+1 -3
View File
@@ -42,7 +42,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -50,11 +49,10 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
#include <nuttx/kmalloc.h>
#include "socket/socket.h"
#include "usrsock/usrsock.h"
/****************************************************************************
+1 -3
View File
@@ -43,7 +43,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -51,11 +50,10 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
#include <nuttx/kmalloc.h>
#include "socket/socket.h"
#include "usrsock/usrsock.h"
/****************************************************************************
+1 -2
View File
@@ -43,7 +43,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <poll.h>
@@ -52,11 +51,11 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
#include <nuttx/kmalloc.h>
#include "socket/socket.h"
#include "usrsock/usrsock.h"
/****************************************************************************
+1 -3
View File
@@ -42,7 +42,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -50,11 +49,10 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
#include <nuttx/kmalloc.h>
#include "socket/socket.h"
#include "usrsock/usrsock.h"
/****************************************************************************
+1 -3
View File
@@ -42,7 +42,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -50,11 +49,10 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
#include <nuttx/kmalloc.h>
#include "socket/socket.h"
#include "usrsock/usrsock.h"
/****************************************************************************
+1 -3
View File
@@ -43,7 +43,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -51,11 +50,10 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>
#include <nuttx/kmalloc.h>
#include "socket/socket.h"
#include "usrsock/usrsock.h"
/****************************************************************************
+1 -1
View File
@@ -42,7 +42,6 @@
#include <stdint.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -50,6 +49,7 @@
#include <arch/irq.h>
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>
#include <nuttx/net/usrsock.h>