summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-28 13:56:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-28 13:56:01 +0000
commitabef0f69aea9d3c7793a0ee8f0895b8c43d881ae (patch)
tree4fc7aba925837e8fffcd4f26a2fa0d81a2c9d9c0 /cpukit/libnetworking/libc
parent2002-10-28 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-abef0f69aea9d3c7793a0ee8f0895b8c43d881ae.tar.bz2
2002-10-28 Joel Sherrill <joel@OARcorp.com>
* Pass to eliminate warnings. * kern/uipc_mbuf.c: Conditional SYSINIT() usage on __rtems__. Fix return statement without a value. * lib/ftpfs.c: read and write filesystem routines return ssize_t. * lib/syslog.c: Add include of <string.h> to eliminate warning. * lib/tftpDriver.c: read and write filesystem routines return ssize_t. * libc/gethostbydns.c: Prototype abort(). * libc/inet_ntoa.c: Prototype strcpy(). * libc/rcmd.c: Add include of <sys/select.h> * net/if_loop.c: Turn token at end of endif to comment. * net/rtsock.c, nfs/bootp_subr.c: Conditional SYSINIT() usage on __rtems__. * rtems/rtems_bootp.c: Add include of <rtems/rtems_bsdnet_internal.h>. * rtems/rtems_bsdnet_internal.h: Added prototypes for memcpy() and memset() since the BSD code tries to avoid using libc .h files since it is used to being in the kernel. * rtems/rtems_syscall.c: read and write filesystem routines return ssize_t.
Diffstat (limited to 'cpukit/libnetworking/libc')
-rw-r--r--cpukit/libnetworking/libc/gethostbydns.c2
-rw-r--r--cpukit/libnetworking/libc/inet_ntoa.c1
-rw-r--r--cpukit/libnetworking/libc/rcmd.c2
3 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/libnetworking/libc/gethostbydns.c b/cpukit/libnetworking/libc/gethostbydns.c
index 3d80ffde7a..4991ccad22 100644
--- a/cpukit/libnetworking/libc/gethostbydns.c
+++ b/cpukit/libnetworking/libc/gethostbydns.c
@@ -77,6 +77,8 @@ static char rcsid[] = "$Id$";
#include "res_config.h"
+void abort(void); /* to avoid warning */
+
#define SPRINTF(x) ((size_t)sprintf x)
#define MAXALIASES 35
diff --git a/cpukit/libnetworking/libc/inet_ntoa.c b/cpukit/libnetworking/libc/inet_ntoa.c
index 44b686f0b3..0844b6c5ad 100644
--- a/cpukit/libnetworking/libc/inet_ntoa.c
+++ b/cpukit/libnetworking/libc/inet_ntoa.c
@@ -52,6 +52,7 @@ 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 8dd4d0cbe2..6dce728d43 100644
--- a/cpukit/libnetworking/libc/rcmd.c
+++ b/cpukit/libnetworking/libc/rcmd.c
@@ -59,6 +59,8 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94";
#include <rpcsvc/ypclnt.h>
#endif
+#include <sys/select.h>
+
#define max(a, b) ((a > b) ? a : b)