summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/init-init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/init-init.c b/libdiskfs/init-init.c
index 5463ccb8..282facbb 100644
--- a/libdiskfs/init-init.c
+++ b/libdiskfs/init-init.c
@@ -60,9 +60,9 @@ diskfs_init_diskfs (void)
ports_wire_threads = diskfs_host_priv;
- diskfs_control_port =
- ((struct port_info *)ports_allocate_port(sizeof (struct port_info),
- PT_CTL))->port;
+ diskfs_control_port = (ports_get_right
+ (ports_allocate_port(sizeof (struct port_info),
+ PT_CTL)));
diskfs_default_pager = MACH_PORT_NULL;
vm_set_default_memory_manager (diskfs_host_priv, &diskfs_default_pager);