Eliminate some warnings found in build testing.
This commit is contained in:
parent
046a94e363
commit
684a59f8e8
|
@ -45,6 +45,10 @@
|
|||
#include <stdbool.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#ifdef CONFIG_WATCHDOG
|
||||
# include "lc823450_wdt.h"
|
||||
#endif
|
||||
|
||||
#include "lc823450-xgevk.h"
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue