summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-07 21:58:50 +0000
committerarchie <archie@FreeBSD.org>1998-12-07 21:58:50 +0000
commit60d13c7a9dd18f720483338ebef03609492ca98c (patch)
tree5709d8cdab99e3c1cb9ae7c2117627c1031fdf39 /sys/nfs
parent2f8d013d96c256b3a48e227aab238e53eb9304cf (diff)
downloadFreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.zip
FreeBSD-src-60d13c7a9dd18f720483338ebef03609492ca98c.tar.gz
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/bootp_subr.c7
-rw-r--r--sys/nfs/nfs_bio.c4
-rw-r--r--sys/nfs/nfs_common.c3
-rw-r--r--sys/nfs/nfs_socket.c3
-rw-r--r--sys/nfs/nfs_subs.c3
-rw-r--r--sys/nfs/nfs_syscalls.c3
6 files changed, 7 insertions, 16 deletions
diff --git a/sys/nfs/bootp_subr.c b/sys/nfs/bootp_subr.c
index ca64638..1efca25 100644
--- a/sys/nfs/bootp_subr.c
+++ b/sys/nfs/bootp_subr.c
@@ -1,4 +1,4 @@
-/* $Id: bootp_subr.c,v 1.16 1998/12/03 20:28:23 dillon Exp $ */
+/* $Id: bootp_subr.c,v 1.17 1998/12/04 22:54:54 archie Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@@ -262,13 +262,11 @@ bootpc_call(call,reply,procp)
{
struct socket *so;
struct sockaddr_in *sin, sa;
- struct mbuf *m;
struct uio auio;
struct sockopt sopt;
struct iovec aio;
struct timeval tv;
int error, on, len, rcvflg, secs, timo;
- u_int tport;
/*
* Create socket and set its recieve timeout.
@@ -730,7 +728,7 @@ bootpc_init(void)
struct socket *so;
int error;
int code,ncode,len;
- int i,j;
+ int j;
char *p;
unsigned int ip;
@@ -744,7 +742,6 @@ bootpc_init(void)
char lookup_path[24];
#define EALEN 6
- unsigned char ea[EALEN];
struct ifaddr *ifa;
struct sockaddr_dl *sdl = NULL;
char *delim;
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c
index f68a82b..fb92542 100644
--- a/sys/nfs/nfs_bio.c
+++ b/sys/nfs/nfs_bio.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95
- * $Id: nfs_bio.c,v 1.62 1998/09/29 22:01:10 mckusick Exp $
+ * $Id: nfs_bio.c,v 1.63 1998/11/09 07:00:14 peter Exp $
*/
@@ -86,7 +86,6 @@ nfs_getpages(ap)
int i, error, nextoff, size, toff, npages, count;
struct uio uio;
struct iovec iov;
- vm_page_t m;
vm_offset_t kva;
struct buf *bp;
struct vnode *vp;
@@ -198,7 +197,6 @@ nfs_putpages(ap)
{
struct uio uio;
struct iovec iov;
- vm_page_t m;
vm_offset_t kva;
struct buf *bp;
int iomode, must_commit, i, error, npages, count;
diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c
index c4131e5..f2c7c93 100644
--- a/sys/nfs/nfs_common.c
+++ b/sys/nfs/nfs_common.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
- * $Id: nfs_subs.c,v 1.66 1998/10/31 15:31:25 peter Exp $
+ * $Id: nfs_subs.c,v 1.67 1998/11/09 07:00:14 peter Exp $
*/
/*
@@ -650,7 +650,6 @@ nfsm_rpchead(cr, nmflag, procid, auth_type, auth_len, auth_str, verf_len,
register int i;
struct mbuf *mreq, *mb2;
int siz, grpsiz, authsiz;
- static u_int32_t base;
authsiz = nfsm_rndup(auth_len);
MGETHDR(mb, M_WAIT, MT_DATA);
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c
index 8327856..5503d47 100644
--- a/sys/nfs/nfs_socket.c
+++ b/sys/nfs/nfs_socket.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_socket.c 8.5 (Berkeley) 3/30/95
- * $Id: nfs_socket.c,v 1.46 1998/09/29 22:33:05 mckusick Exp $
+ * $Id: nfs_socket.c,v 1.47 1998/11/13 09:44:12 dfr Exp $
*/
/*
@@ -191,7 +191,6 @@ nfs_connect(nmp, rep)
int s, error, rcvreserve, sndreserve;
struct sockaddr *saddr;
struct sockaddr_in *sin;
- struct mbuf *m;
u_int16_t tport;
struct proc *p = &proc0; /* only used for socreate and sobind */
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index c4131e5..f2c7c93 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
- * $Id: nfs_subs.c,v 1.66 1998/10/31 15:31:25 peter Exp $
+ * $Id: nfs_subs.c,v 1.67 1998/11/09 07:00:14 peter Exp $
*/
/*
@@ -650,7 +650,6 @@ nfsm_rpchead(cr, nmflag, procid, auth_type, auth_len, auth_str, verf_len,
register int i;
struct mbuf *mreq, *mb2;
int siz, grpsiz, authsiz;
- static u_int32_t base;
authsiz = nfsm_rndup(auth_len);
MGETHDR(mb, M_WAIT, MT_DATA);
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c
index abf3383..8b85b9b 100644
--- a/sys/nfs/nfs_syscalls.c
+++ b/sys/nfs/nfs_syscalls.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95
- * $Id: nfs_syscalls.c,v 1.42 1998/08/23 03:07:16 wollman Exp $
+ * $Id: nfs_syscalls.c,v 1.43 1998/09/01 02:31:52 luoqi Exp $
*/
#include <sys/param.h>
@@ -357,7 +357,6 @@ nfssvc_addsock(fp, mynam, p)
struct sockaddr *mynam;
struct proc *p;
{
- register struct mbuf *m;
register int siz;
register struct nfssvc_sock *slp;
register struct socket *so;
OpenPOWER on IntegriCloud