diff options
author | rsc <devnull@localhost> | 2004-12-26 23:24:14 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-26 23:24:14 +0000 |
commit | d9f3e89e5efc95811a7d56aa8ae107aad3e3e286 (patch) | |
tree | f27dd55eb3dd971c1edb73228d07f32e32730d28 /src/libdisk | |
parent | beff571cfdabdae0d33b0a9f504c1c1947dd8593 (diff) | |
download | plan9port-d9f3e89e5efc95811a7d56aa8ae107aad3e3e286.tar.gz plan9port-d9f3e89e5efc95811a7d56aa8ae107aad3e3e286.tar.bz2 plan9port-d9f3e89e5efc95811a7d56aa8ae107aad3e3e286.zip |
use volatile correctly
Diffstat (limited to 'src/libdisk')
-rw-r--r-- | src/libdisk/proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libdisk/proto.c b/src/libdisk/proto.c index 8c94ddca..d1b136d5 100644 --- a/src/libdisk/proto.c +++ b/src/libdisk/proto.c @@ -78,7 +78,7 @@ rdproto(char *proto, char *root, Mkfsenum *mkenum, Mkfserr *mkerr, void *a) { Mkaux mx, *m; File file; - int rv; + volatile int rv; m = &mx; memset(&mx, 0, sizeof mx); @@ -101,7 +101,7 @@ rdproto(char *proto, char *root, Mkfsenum *mkenum, Mkfserr *mkerr, void *a) file.new = ""; file.old = nil; - *(&rv) = 0; + rv = 0; if(setjmp(m->jmp) == 0) domkfs(m, &file, -1); else |