mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +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;
|
Mkaux mx, *m;
|
||||||
File file;
|
File file;
|
||||||
int rv;
|
volatile int rv;
|
||||||
|
|
||||||
m = &mx;
|
m = &mx;
|
||||||
memset(&mx, 0, sizeof mx);
|
memset(&mx, 0, sizeof mx);
|
||||||
|
@ -101,7 +101,7 @@ rdproto(char *proto, char *root, Mkfsenum *mkenum, Mkfserr *mkerr, void *a)
|
||||||
file.new = "";
|
file.new = "";
|
||||||
file.old = nil;
|
file.old = nil;
|
||||||
|
|
||||||
*(&rv) = 0;
|
rv = 0;
|
||||||
if(setjmp(m->jmp) == 0)
|
if(setjmp(m->jmp) == 0)
|
||||||
domkfs(m, &file, -1);
|
domkfs(m, &file, -1);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue