summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 20:42:01 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 20:42:01 +0000
commit544ab327dd91d5b60154bc2b2f299cfac5c8b2f7 (patch)
tree32b169a9a6160a595c0f25f32bc83330f474d88d /libdiskfs
parent65bd7b600ee9dd5b4c9a7d2777c330148508c5a6 (diff)
(disk_pager_setup): Use diskfs_check_readonly instead of diskfs_readonly.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/disk-pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/disk-pager.c b/libdiskfs/disk-pager.c
index 9ae2a2a5..2609ce4b 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_readonly ? 0 : VM_PROT_WRITE),
+ VM_PROT_READ | (diskfs_check_readonly () ? 0 : VM_PROT_WRITE),
VM_PROT_READ | VM_PROT_WRITE,
VM_INHERIT_NONE);
if (err)