diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-10-28 13:56:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-10-28 13:56:01 +0000 |
commit | abef0f69aea9d3c7793a0ee8f0895b8c43d881ae (patch) | |
tree | 4fc7aba925837e8fffcd4f26a2fa0d81a2c9d9c0 /cpukit/libnetworking/kern | |
parent | 2002-10-28 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-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/kern')
-rw-r--r-- | cpukit/libnetworking/kern/uipc_mbuf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/libnetworking/kern/uipc_mbuf.c b/cpukit/libnetworking/kern/uipc_mbuf.c index 4d97ea0bb0..961be6e8b1 100644 --- a/cpukit/libnetworking/kern/uipc_mbuf.c +++ b/cpukit/libnetworking/kern/uipc_mbuf.c @@ -50,8 +50,10 @@ #include <vm/vm_kern.h> #include <vm/vm_extern.h> +#if !defined(__rtems__) static void mbinit __P((void *)) __attribute__ ((unused)); SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbinit, NULL) +#endif struct mbuf *mbutl; char *mclrefcnt; @@ -729,7 +731,7 @@ m_copyback(m0, off, len, cp) int totlen = 0; if (m0 == 0) - return; + return 0; while (off > (mlen = m->m_len)) { off -= mlen; totlen += mlen; @@ -768,7 +770,8 @@ m_copyback(m0, off, len, cp) m->m_len = mlen; m = m->m_next; } -out: if (((m = m0)->m_flags & M_PKTHDR) && (m->m_pkthdr.len < totlen)) +/*out:*/ + if (((m = m0)->m_flags & M_PKTHDR) && (m->m_pkthdr.len < totlen)) m->m_pkthdr.len = totlen; return 0; } |