summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-05-28 06:13:08 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-05-28 06:13:08 +0000
commitfbfb64b089bf7db09282feda12081278fe6ef406 (patch)
treeebe2f83a3065b8e01ef85484920d937d65381c17 /sys/nfs
parent72bbbd14343b349d6b52903791247c38254b0cd8 (diff)
Fix tree breakage. Variables only used inside #ifdef NFSSERVER should
be defined inside same. ramdisk_cd (has nfs, but is not a server) compiles again.
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c
index a6da0887e1e..f2d7c237d04 100644
--- a/sys/nfs/nfs_syscalls.c
+++ b/sys/nfs/nfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_syscalls.c,v 1.51 2007/05/27 21:14:41 thib Exp $ */
+/* $OpenBSD: nfs_syscalls.c,v 1.52 2007/05/28 06:13:07 krw Exp $ */
/* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */
/*
@@ -118,13 +118,13 @@ static void nfsd_rt(int, struct nfsrv_descript *, int);
int
sys_nfssvc(struct proc *p, void *v, register_t *retval)
{
+ int error = 0;
+#ifdef NFSSERVER
struct sys_nfssvc_args /* {
syscallarg(int) flag;
syscallarg(caddr_t) argp;
} */ *uap = v;
int flags = SCARG(uap, flag);
- int error = 0;
-#ifdef NFSSERVER
struct file *fp;
struct mbuf *nam;
struct nfsd_args nfsdarg;