diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-11 14:27:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-11 14:27:11 +0000 |
commit | b01a17e3235e9cbe98a11ff3095e6792b8e6eb9c (patch) | |
tree | 5aa9f7f8d4ea9d6c64d517b75316000fbe71e7b5 /nuttx/net | |
parent | 71d243809b6f25b4d1d4265c74a5ea6f5d763490 (diff) | |
download | px4-nuttx-b01a17e3235e9cbe98a11ff3095e6792b8e6eb9c.tar.gz px4-nuttx-b01a17e3235e9cbe98a11ff3095e6792b8e6eb9c.tar.bz2 px4-nuttx-b01a17e3235e9cbe98a11ff3095e6792b8e6eb9c.zip |
eliminate some warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@442 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net')
-rw-r--r-- | nuttx/net/accept.c | 4 | ||||
-rw-r--r-- | nuttx/net/uip/uip-tcpinput.c | 1 | ||||
-rw-r--r-- | nuttx/net/uip/uip-tcpsend.c | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/net/accept.c b/nuttx/net/accept.c index 07db1ef30..122e67c43 100644 --- a/nuttx/net/accept.c +++ b/nuttx/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/nuttx/net/uip/uip-tcpinput.c b/nuttx/net/uip/uip-tcpinput.c index 8b551ca9e..73eb73592 100644 --- a/nuttx/net/uip/uip-tcpinput.c +++ b/nuttx/net/uip/uip-tcpinput.c @@ -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> diff --git a/nuttx/net/uip/uip-tcpsend.c b/nuttx/net/uip/uip-tcpsend.c index 5b28539bb..b68788b93 100644 --- a/nuttx/net/uip/uip-tcpsend.c +++ b/nuttx/net/uip/uip-tcpsend.c @@ -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> |