diff options
author | rsc <devnull@localhost> | 2004-12-28 17:34:05 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-28 17:34:05 +0000 |
commit | f7b74c1725b497df5ce836545c127ad565175c70 (patch) | |
tree | 72bd3834e60d22524f9cccb0a90d4489aabf97c6 /src/cmd/sam | |
parent | d54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f (diff) | |
download | plan9port-f7b74c1725b497df5ce836545c127ad565175c70.tar.gz plan9port-f7b74c1725b497df5ce836545c127ad565175c70.tar.bz2 plan9port-f7b74c1725b497df5ce836545c127ad565175c70.zip |
FreeBSD tweaks
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]; |