FreeBSD tweaks
diff --git a/src/cmd/sam/sam.c b/src/cmd/sam/sam.c
index 803b84e..b5b16a1 100644
--- a/src/cmd/sam/sam.c
+++ b/src/cmd/sam/sam.c
@@ -38,9 +38,9 @@
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 2cac31b..ee30e5d 100644
--- a/src/cmd/sam/shell.c
+++ b/src/cmd/sam/shell.c
@@ -13,7 +13,8 @@
{
long l;
int m;
- int pid, fd;
+ int volatile pid;
+ int fd;
int retcode;
int pipe1[2], pipe2[2];