diff options
Diffstat (limited to 'src/cmd/sam')
-rw-r--r-- | src/cmd/sam/sam.c | 4 | ||||
-rw-r--r-- | src/cmd/sam/shell.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/cmd/sam/sam.c b/src/cmd/sam/sam.c index 803b84e6..b5b16a10 100644 --- a/src/cmd/sam/sam.c +++ b/src/cmd/sam/sam.c @@ -38,9 +38,9 @@ void usage(void); extern int notify(void(*)(void*,char*)); int -main(int argc, char *argv[]) +main(int volatile argc, char **volatile argv) { - int i; + int volatile i; String *t; char **ap, **arg; diff --git a/src/cmd/sam/shell.c b/src/cmd/sam/shell.c index 2cac31bc..ee30e5d0 100644 --- a/src/cmd/sam/shell.c +++ b/src/cmd/sam/shell.c @@ -13,7 +13,8 @@ plan9(File *f, int type, String *s, int nest) { long l; int m; - int pid, fd; + int volatile pid; + int fd; int retcode; int pipe1[2], pipe2[2]; |