summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-17 15:45:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-17 15:45:15 +0000
commita238cc97d0d0a865a26cec223b86960cca878127 (patch)
tree5d7fbd7af87b82671d228e1cd60adb58dde9fa63 /c
parentPatch from D. V. Henkel-Wallace <gumby@zembu.com>: (diff)
downloadrtems-a238cc97d0d0a865a26cec223b86960cca878127.tar.bz2
Patch from D. V. Henkel-Wallace <gumby@zembu.com> to remove compiler
warnings.
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/libnetworking/kern/uipc_domain.c4
-rw-r--r--c/src/exec/libnetworking/kern/uipc_mbuf.c2
-rw-r--r--c/src/exec/libnetworking/nfs/bootp_subr.c2
-rw-r--r--c/src/lib/libnetworking/kern/uipc_domain.c4
-rw-r--r--c/src/lib/libnetworking/kern/uipc_mbuf.c2
-rw-r--r--c/src/lib/libnetworking/nfs/bootp_subr.c2
-rw-r--r--c/src/libnetworking/kern/uipc_domain.c4
-rw-r--r--c/src/libnetworking/kern/uipc_mbuf.c2
-rw-r--r--c/src/libnetworking/nfs/bootp_subr.c2
9 files changed, 12 insertions, 12 deletions
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 <vm/vm_kern.h>
#include <vm/vm_extern.h>
-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));
diff --git a/c/src/lib/libnetworking/kern/uipc_domain.c b/c/src/lib/libnetworking/kern/uipc_domain.c
index 910007395c..81d741fe37 100644
--- a/c/src/lib/libnetworking/kern/uipc_domain.c
+++ b/c/src/lib/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/lib/libnetworking/kern/uipc_mbuf.c b/c/src/lib/libnetworking/kern/uipc_mbuf.c
index f682be94a7..d6b51e3d95 100644
--- a/c/src/lib/libnetworking/kern/uipc_mbuf.c
+++ b/c/src/lib/libnetworking/kern/uipc_mbuf.c
@@ -50,7 +50,7 @@
#include <vm/vm_kern.h>
#include <vm/vm_extern.h>
-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/lib/libnetworking/nfs/bootp_subr.c b/c/src/lib/libnetworking/nfs/bootp_subr.c
index f6831eed71..b39c9e4714 100644
--- a/c/src/lib/libnetworking/nfs/bootp_subr.c
+++ b/c/src/lib/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));
diff --git a/c/src/libnetworking/kern/uipc_domain.c b/c/src/libnetworking/kern/uipc_domain.c
index 910007395c..81d741fe37 100644
--- a/c/src/libnetworking/kern/uipc_domain.c
+++ b/c/src/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/libnetworking/kern/uipc_mbuf.c b/c/src/libnetworking/kern/uipc_mbuf.c
index f682be94a7..d6b51e3d95 100644
--- a/c/src/libnetworking/kern/uipc_mbuf.c
+++ b/c/src/libnetworking/kern/uipc_mbuf.c
@@ -50,7 +50,7 @@
#include <vm/vm_kern.h>
#include <vm/vm_extern.h>
-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/libnetworking/nfs/bootp_subr.c b/c/src/libnetworking/nfs/bootp_subr.c
index f6831eed71..b39c9e4714 100644
--- a/c/src/libnetworking/nfs/bootp_subr.c
+++ b/c/src/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));