summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/lib
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/lib
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/lib')
-rw-r--r--cpukit/libnetworking/lib/ftpfs.c4
-rw-r--r--cpukit/libnetworking/lib/syslog.c1
-rw-r--r--cpukit/libnetworking/lib/tftpDriver.c4
3 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c
index 033c1b6bdf..19f8ef8bb9 100644
--- a/cpukit/libnetworking/lib/ftpfs.c
+++ b/cpukit/libnetworking/lib/ftpfs.c
@@ -959,7 +959,7 @@ int rtems_ftp_open(
/*
* Read from a FTP stream
*/
-int rtems_ftp_read(
+ssize_t rtems_ftp_read(
rtems_libio_t *iop,
void *buffer,
unsigned32 count
@@ -1013,7 +1013,7 @@ int rtems_ftp_read(
return count - want_cnt;
}
-int rtems_ftp_write(
+ssize_t rtems_ftp_write(
rtems_libio_t *iop,
const void *buffer,
unsigned32 count
diff --git a/cpukit/libnetworking/lib/syslog.c b/cpukit/libnetworking/lib/syslog.c
index 0bb15bc78e..087dff7cfa 100644
--- a/cpukit/libnetworking/lib/syslog.c
+++ b/cpukit/libnetworking/lib/syslog.c
@@ -12,6 +12,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <string.h>
#include <unistd.h>
diff --git a/cpukit/libnetworking/lib/tftpDriver.c b/cpukit/libnetworking/lib/tftpDriver.c
index 52f51748a5..6ab6c44659 100644
--- a/cpukit/libnetworking/lib/tftpDriver.c
+++ b/cpukit/libnetworking/lib/tftpDriver.c
@@ -791,7 +791,7 @@ static int rtems_tftp_open(
/*
* Read from a TFTP stream
*/
-static int rtems_tftp_read(
+static ssize_t rtems_tftp_read(
rtems_libio_t *iop,
void *buffer,
unsigned32 count
@@ -932,7 +932,7 @@ static int rtems_tftp_close(
return RTEMS_SUCCESSFUL;
}
-static int rtems_tftp_write(
+static ssize_t rtems_tftp_write(
rtems_libio_t *iop,
const void *buffer,
unsigned32 count