From 789c23dd09db3e3e247f74a09684a9ee7ac1af33 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 27 Jun 1996 18:49:24 +0000 Subject: (disk_pager_setup): Check diskfs_readonly variable instead of calling diskfs_check_readonly. --- libdiskfs/disk-pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs') diff --git a/libdiskfs/disk-pager.c b/libdiskfs/disk-pager.c index 2609ce4b..9ae2a2a5 100644 --- a/libdiskfs/disk-pager.c +++ b/libdiskfs/disk-pager.c @@ -72,7 +72,7 @@ disk_pager_setup (struct user_pager_info *upi, int may_cache) err = vm_map (mach_task_self (), (vm_address_t *)&disk_image, diskfs_device_size << diskfs_log2_device_block_size, 0, 1, disk_pager_port, 0, 0, - VM_PROT_READ | (diskfs_check_readonly () ? 0 : VM_PROT_WRITE), + VM_PROT_READ | (diskfs_readonly ? 0 : VM_PROT_WRITE), VM_PROT_READ | VM_PROT_WRITE, VM_INHERIT_NONE); if (err) -- cgit v1.2.3