From abef0f69aea9d3c7793a0ee8f0895b8c43d881ae Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 28 Oct 2002 13:56:01 +0000 Subject: 2002-10-28 Joel Sherrill * 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 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 * 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: 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. --- cpukit/libnetworking/nfs/bootp_subr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpukit/libnetworking/nfs/bootp_subr.c') diff --git a/cpukit/libnetworking/nfs/bootp_subr.c b/cpukit/libnetworking/nfs/bootp_subr.c index 0d0eb3c4d0..237d75e4b9 100644 --- a/cpukit/libnetworking/nfs/bootp_subr.c +++ b/cpukit/libnetworking/nfs/bootp_subr.c @@ -121,8 +121,8 @@ static int md_lookup_swap __P((struct sockaddr_in *mdsin,char *path, static int setfs __P((struct sockaddr_in *addr, char *path, char *p)); static int getdec __P((char **ptr)); #endif -static char *substr __P((char *a,char *b)); #if !defined(__rtems__) +static char *substr __P((char *a,char *b)); static void mountopts __P((struct nfs_args *args, char *p)); static int xdr_opaque_decode __P((struct mbuf **ptr,u_char *buf, int len)); @@ -670,6 +670,7 @@ static int setfs(addr, path, p) } #endif +#if !defined(__rtems__) static int getdec(ptr) char **ptr; { @@ -683,7 +684,9 @@ static int getdec(ptr) *ptr = p; return(ret); } +#endif +#if !defined(__rtems__) static char *substr(a,b) char *a,*b; { @@ -702,6 +705,7 @@ static char *substr(a,b) } return (0); } +#endif static void printip(char *prefix,struct in_addr addr) { -- cgit v1.2.3