use volatile correctly

This commit is contained in:
rsc 2004-12-26 23:24:14 +00:00
parent beff571cfd
commit d9f3e89e5e

View file

@ -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