Eliminate some warnings found in build testing.

This commit is contained in:
Gregory Nutt 2017-09-15 14:42:24 -06:00
parent 046a94e363
commit 684a59f8e8
2 changed files with 5 additions and 1 deletions

View File

@ -45,6 +45,10 @@
#include <stdbool.h>
#include <syslog.h>
#ifdef CONFIG_WATCHDOG
# include "lc823450_wdt.h"
#endif
#include "lc823450-xgevk.h"
/****************************************************************************

View File

@ -81,6 +81,7 @@
int ipv4_getsockname(FAR struct socket *psock, FAR struct sockaddr *addr,
FAR socklen_t *addrlen)
{
#if defined(NET_TCP_HAVE_STACK) || defined(NET_UDP_HAVE_STACK)
FAR struct sockaddr_in *outaddr = (FAR struct sockaddr_in *)addr;
FAR struct net_driver_s *dev;
in_addr_t lipaddr;
@ -98,7 +99,6 @@ int ipv4_getsockname(FAR struct socket *psock, FAR struct sockaddr *addr,
return -ENOSYS;
}
#if defined(NET_TCP_HAVE_STACK) || defined(NET_UDP_HAVE_STACK)
/* Set the port number */
switch (psock->s_type)