From ea50c50b474e15d21be9304342ebd05c767d6110 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 11 Dec 2007 14:27:11 +0000 Subject: [PATCH] eliminate some warnings git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@442 42af7a65-404d-4744-a932-0658087f49c3 --- net/accept.c | 4 ++-- net/uip/uip-tcpinput.c | 1 + net/uip/uip-tcpsend.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/net/accept.c b/net/accept.c index 07db1ef303..122e67c431 100644 --- a/net/accept.c +++ b/net/accept.c @@ -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; diff --git a/net/uip/uip-tcpinput.c b/net/uip/uip-tcpinput.c index 8b551ca9ef..73eb73592c 100644 --- a/net/uip/uip-tcpinput.c +++ b/net/uip/uip-tcpinput.c @@ -46,6 +46,7 @@ #if defined(CONFIG_NET) && defined(CONFIG_NET_TCP) #include +#include #include #include diff --git a/net/uip/uip-tcpsend.c b/net/uip/uip-tcpsend.c index 5b28539bb2..b68788b93b 100644 --- a/net/uip/uip-tcpsend.c +++ b/net/uip/uip-tcpsend.c @@ -45,6 +45,7 @@ #if defined(CONFIG_NET) && defined(CONFIG_NET_TCP) #include +#include #include #include