summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-11-21 19:08:56 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-11-21 19:08:56 +0000
commitf6c64250710d12a398690135a14774254d36721d (patch)
tree90425fe69803ebcdb7d5a34d135142fd57c611f7
parent35345273bbbecbbc867642e78efeea73e46fe477 (diff)
(_diskfs_rdwr_internal): Declare PROT volatile.
-rw-r--r--libdiskfs/rdwr-internal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/rdwr-internal.c b/libdiskfs/rdwr-internal.c
index 727c06b3..ecd5d8c7 100644
--- a/libdiskfs/rdwr-internal.c
+++ b/libdiskfs/rdwr-internal.c
@@ -37,7 +37,8 @@ _diskfs_rdwr_internal (struct node *np,
int winoff;
volatile int cc;
memory_object_t memobj;
- vm_prot_t prot = dir ? (VM_PROT_READ | VM_PROT_WRITE) : VM_PROT_READ;
+ volatile vm_prot_t prot
+ = dir ? (VM_PROT_READ | VM_PROT_WRITE) : VM_PROT_READ;
error_t err = 0;
if (dir)