From a238cc97d0d0a865a26cec223b86960cca878127 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 17 May 1999 15:45:15 +0000 Subject: Patch from D. V. Henkel-Wallace to remove compiler warnings. --- c/src/exec/libnetworking/kern/uipc_domain.c | 4 ++-- c/src/exec/libnetworking/kern/uipc_mbuf.c | 2 +- c/src/exec/libnetworking/nfs/bootp_subr.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'c/src/exec') diff --git a/c/src/exec/libnetworking/kern/uipc_domain.c b/c/src/exec/libnetworking/kern/uipc_domain.c index 910007395c..81d741fe37 100644 --- a/c/src/exec/libnetworking/kern/uipc_domain.c +++ b/c/src/exec/libnetworking/kern/uipc_domain.c @@ -115,6 +115,7 @@ domaininit(dummy) } +#if !defined(__rtems__) /* * The following two operations are kludge code. Most likely, they should * be done as a "domainpreinit()" for the first function and then rolled @@ -140,8 +141,7 @@ kludge_splx(udata) splx( *savesplp); } - - +#endif /* !defined(__rtems__) */ struct protosw * pffindtype(int family, int type) diff --git a/c/src/exec/libnetworking/kern/uipc_mbuf.c b/c/src/exec/libnetworking/kern/uipc_mbuf.c index f682be94a7..d6b51e3d95 100644 --- a/c/src/exec/libnetworking/kern/uipc_mbuf.c +++ b/c/src/exec/libnetworking/kern/uipc_mbuf.c @@ -50,7 +50,7 @@ #include #include -static void mbinit __P((void *)); +static void mbinit __P((void *)) __attribute__ ((unused)); SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbinit, NULL) struct mbuf *mbutl; diff --git a/c/src/exec/libnetworking/nfs/bootp_subr.c b/c/src/exec/libnetworking/nfs/bootp_subr.c index f6831eed71..b39c9e4714 100644 --- a/c/src/exec/libnetworking/nfs/bootp_subr.c +++ b/c/src/exec/libnetworking/nfs/bootp_subr.c @@ -113,8 +113,8 @@ static int md_lookup_swap __P((struct sockaddr_in *mdsin,char *path, struct nfs_args *args, struct proc *procp)); static int setfs __P((struct sockaddr_in *addr, char *path, char *p)); -#endif static int getdec __P((char **ptr)); +#endif static char *substr __P((char *a,char *b)); #if !defined(__rtems__) static void mountopts __P((struct nfs_args *args, char *p)); -- cgit v1.2.3