summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-18 21:42:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-18 21:42:41 +0000
commit02aaec7647607e96532b93083557412daca02285 (patch)
tree3c43da9ca1d68b69d0d5d596176d1314e8e895ac /cpukit/libnetworking/libc
parent2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-02aaec7647607e96532b93083557412daca02285.tar.bz2
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/lib/ftpfs.c, libnetworking/libc/inet_ntoa.c, libnetworking/libc/rcmd.c, libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_glue.c, libnetworking/rtems/rtems_malloc_mbuf.c, libnetworking/rtems/rtems_showicmpstat.c, libnetworking/sys/malloc.h: Fix some warnings.
Diffstat (limited to 'cpukit/libnetworking/libc')
-rw-r--r--cpukit/libnetworking/libc/inet_ntoa.c2
-rw-r--r--cpukit/libnetworking/libc/rcmd.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libnetworking/libc/inet_ntoa.c b/cpukit/libnetworking/libc/inet_ntoa.c
index 7bafcc2685..d6a99a5cc9 100644
--- a/cpukit/libnetworking/libc/inet_ntoa.c
+++ b/cpukit/libnetworking/libc/inet_ntoa.c
@@ -42,6 +42,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
+#include <sys/libkern.h> /* for strcpy */
/*
* Convert network-format internet address
@@ -52,7 +53,6 @@ inet_ntoa(in)
struct in_addr in;
{
static char ret[18];
- char *strcpy(char *dest, const char *src);
strcpy(ret, "[inet_ntoa error]");
(void) inet_ntop(AF_INET, &in, ret, sizeof ret);
diff --git a/cpukit/libnetworking/libc/rcmd.c b/cpukit/libnetworking/libc/rcmd.c
index e63ec76b6b..d0fb281e1f 100644
--- a/cpukit/libnetworking/libc/rcmd.c
+++ b/cpukit/libnetworking/libc/rcmd.c
@@ -54,6 +54,7 @@
#include <ctype.h>
#include <string.h>
#include <rpc/rpc.h>
+#include <sys/select.h>
#ifdef YP
#include <rpcsvc/yp_prot.h>
#include <rpcsvc/ypclnt.h>