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/net | |
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/net')
-rw-r--r-- | cpukit/libnetworking/net/if_loop.c | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/net/rtsock.c | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/cpukit/libnetworking/net/if_loop.c b/cpukit/libnetworking/net/if_loop.c index 345730c729..6ff6bdfe4d 100644 --- a/cpukit/libnetworking/net/if_loop.c +++ b/cpukit/libnetworking/net/if_loop.c @@ -81,7 +81,7 @@ #include <netinet/if_ether.h> #include <netatalk/at.h> #include <netatalk/at_var.h> -#endif NETATALK +#endif /* NETATALK */ #include "bpfilter.h" @@ -205,7 +205,7 @@ looutput(ifp, m, dst, rt) ifq = &atintrq2; isr = NETISR_ATALK; break; -#endif NETATALK +#endif /* NETATALK */ default: printf("lo%d: can't handle af%d\n", ifp->if_unit, dst->sa_family); diff --git a/cpukit/libnetworking/net/rtsock.c b/cpukit/libnetworking/net/rtsock.c index 57e777906a..274f6fccff 100644 --- a/cpukit/libnetworking/net/rtsock.c +++ b/cpukit/libnetworking/net/rtsock.c @@ -67,8 +67,10 @@ static struct mbuf * static int rt_msg2 __P((int, struct rt_addrinfo *, caddr_t, struct walkarg *)); static int rt_xaddrs __P((caddr_t, caddr_t, struct rt_addrinfo *)); +#if !defined(__rtems__) static int sysctl_dumpentry __P((struct radix_node *rn, void *vw)); static int sysctl_iflist __P((int af, struct walkarg *w)); +#endif static int route_output __P((struct mbuf *, struct socket *)); static int route_usrreq __P((struct socket *, int, struct mbuf *, struct mbuf *, struct mbuf *)); @@ -675,6 +677,7 @@ rt_newaddrmsg(cmd, ifa, error, rt) /* * This is used in dumping the kernel table via sysctl(). */ +#if !defined(__rtems__) int sysctl_dumpentry(rn, vw) struct radix_node *rn; @@ -707,7 +710,9 @@ sysctl_dumpentry(rn, vw) } return (error); } +#endif +#if !defined(__rtems__) int sysctl_iflist(af, w) int af; @@ -762,7 +767,9 @@ sysctl_iflist(af, w) } return (0); } +#endif +#if !defined(__rtems__) static int sysctl_rtsock SYSCTL_HANDLER_ARGS { @@ -807,6 +814,7 @@ sysctl_rtsock SYSCTL_HANDLER_ARGS } SYSCTL_NODE(_net, PF_ROUTE, routetable, CTLFLAG_RD, sysctl_rtsock,""); +#endif /* * Definitions of protocols supported in the ROUTE domain. |