mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
use volatile correctly
This commit is contained in:
parent
beff571cfd
commit
d9f3e89e5e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue