From a84a2dedfcc6ab465d871962744dd4e15b747178 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 5 Sep 1998 15:17:34 +0000 Subject: Instantiate `nfs_mount_type' in a standard file so that it is present when nfs is an LKM. Declare it in a header file. Don't forget to use it in non-Lite2 code. Initialize it to -1 instead of to 0, since 0 will soon be the mount type number for the first vfs loaded. NetBSD uses strcmp() to avoid this ugly global. --- sys/nfsserver/nfs_srvsubs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/nfsserver') diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c index 0ccac22..d4d9280 100644 --- a/sys/nfsserver/nfs_srvsubs.c +++ b/sys/nfsserver/nfs_srvsubs.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 - * $Id: nfs_subs.c,v 1.62 1998/06/14 15:52:00 bde Exp $ + * $Id: nfs_subs.c,v 1.63 1998/06/21 12:50:12 bde Exp $ */ /* @@ -98,7 +98,6 @@ enum vtype nv3tov_type[8]= { VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO }; -int nfs_mount_type; int nfs_ticks; struct nfs_reqq nfs_reqq; -- cgit v1.1