FreeBSD tweaks
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];