summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-14 21:52:47 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-14 21:52:47 +0000
commitfbc4307e327fad34b213c77c35b36d4e9c65b943 (patch)
treec1e5dd81b9789d8064f50b42a7bfa29908004bf0 /libdiskfs
parent5a68ef4c75856160111f63b408228dda6bc2cb42 (diff)
Formerly init-init.c.~6~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/init-init.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libdiskfs/init-init.c b/libdiskfs/init-init.c
index 282facbb..40ae3602 100644
--- a/libdiskfs/init-init.c
+++ b/libdiskfs/init-init.c
@@ -25,7 +25,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
mach_port_t diskfs_host_priv;
mach_port_t diskfs_master_device;
mach_port_t diskfs_default_pager;
-mach_port_t diskfs_control_port;
+struct port_info *diskfs_control_port;
struct mapped_time_value *diskfs_mtime;
spin_lock_t diskfs_node_refcnt_lock = SPIN_LOCK_INITIALIZER;
@@ -60,9 +60,8 @@ diskfs_init_diskfs (void)
ports_wire_threads = diskfs_host_priv;
- diskfs_control_port = (ports_get_right
- (ports_allocate_port(sizeof (struct port_info),
- PT_CTL)));
+ diskfs_control_port = ports_allocate_port(sizeof (struct port_info), PT_CTL);
+ ports_port_ref (diskfs_control_port);
diskfs_default_pager = MACH_PORT_NULL;
vm_set_default_memory_manager (diskfs_host_priv, &diskfs_default_pager);