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:
patacongo 2007-12-11 14:27:11 +00:00
parent 8ff7a809b4
commit ea50c50b47
3 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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>

View File

@ -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>