eliminate some warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@442 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
8ff7a809b4
commit
ea50c50b47
|
@ -242,9 +242,9 @@ int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
|
|||
FAR struct uip_conn *conn;
|
||||
struct accept_s state;
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
FAR struct sockaddr_in6 *inaddr = (const struct sockaddr_in6 *)addr;
|
||||
FAR struct sockaddr_in6 *inaddr = (struct sockaddr_in6 *)addr;
|
||||
#else
|
||||
FAR struct sockaddr_in *inaddr = (const struct sockaddr_in *)addr;
|
||||
FAR struct sockaddr_in *inaddr = (struct sockaddr_in *)addr;
|
||||
#endif
|
||||
irqstate_t save;
|
||||
int newfd;
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
#if defined(CONFIG_NET) && defined(CONFIG_NET_TCP)
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <net/uip/uipopt.h>
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#if defined(CONFIG_NET) && defined(CONFIG_NET_TCP)
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <net/uip/uipopt.h>
|
||||
|
|
Loading…
Reference in New Issue