From b3cc0d070f332ad607035a5f635285ba9a179380 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 1 Apr 2001 01:39:49 +0000 Subject: 2001-03-28 Neal H Walfield * shutdown.c: Move initialization of diskfs_fsys_lock from here ... * init-init.c: ... to here with the rest of the initialization code. * init-init.c: Do not initialize global variables to zero. --- libdiskfs/init-init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/init-init.c b/libdiskfs/init-init.c index 11624763..dc7ee2b2 100644 --- a/libdiskfs/init-init.c +++ b/libdiskfs/init-init.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 95, 96, 97, 98, 99 Free Software Foundation, Inc. + Copyright (C) 1994, 95, 96, 97, 98, 99, 2001 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -28,6 +28,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ mach_port_t diskfs_default_pager; mach_port_t diskfs_auth_server_port; volatile struct mapped_time_value *diskfs_mtime; + +struct rwlock diskfs_fsys_lock = RWLOCK_INITIALIZER; mach_port_t diskfs_fsys_identity; int _diskfs_nosuid, _diskfs_noexec; @@ -38,7 +40,7 @@ struct hurd_port _diskfs_exec_portcell; spin_lock_t diskfs_node_refcnt_lock = SPIN_LOCK_INITIALIZER; spin_lock_t _diskfs_control_lock = SPIN_LOCK_INITIALIZER; -int _diskfs_ncontrol_ports = 0; +int _diskfs_ncontrol_ports; struct port_class *diskfs_protid_class; struct port_class *diskfs_control_class; -- cgit v1.2.3