Skip to content
Snippets Groups Projects
Commit ea50c50b authored by patacongo's avatar patacongo
Browse files

eliminate some warnings

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@442 42af7a65-404d-4744-a932-0658087f49c3
parent 8ff7a809
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment