aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/gzip
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-28 17:34:05 +0000
committerrsc <devnull@localhost>2004-12-28 17:34:05 +0000
commitf7b74c1725b497df5ce836545c127ad565175c70 (patch)
tree72bd3834e60d22524f9cccb0a90d4489aabf97c6 /src/cmd/gzip
parentd54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f (diff)
downloadplan9port-f7b74c1725b497df5ce836545c127ad565175c70.tar.gz
plan9port-f7b74c1725b497df5ce836545c127ad565175c70.tar.bz2
plan9port-f7b74c1725b497df5ce836545c127ad565175c70.zip
FreeBSD tweaks
Diffstat (limited to 'src/cmd/gzip')
-rw-r--r--src/cmd/gzip/unzip.c4
-rw-r--r--src/cmd/gzip/zip.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/gzip/unzip.c b/src/cmd/gzip/unzip.c
index 2f7888de..70e10a1a 100644
--- a/src/cmd/gzip/unzip.c
+++ b/src/cmd/gzip/unzip.c
@@ -135,7 +135,7 @@ static int
unztable(Biobuf *bin, char *file)
{
ZipHead zh;
- int entries;
+ int volatile entries;
entries = findCDir(bin, file);
if(entries < 0)
@@ -273,7 +273,7 @@ unzip(Biobuf *bin, char *file)
{
ZipHead zh;
vlong off;
- int ok, eok, entries;
+ int volatile ok, eok, entries;
entries = findCDir(bin, file);
if(entries < 0)
diff --git a/src/cmd/gzip/zip.c b/src/cmd/gzip/zip.c
index 0e0d6baa..63903ece 100644
--- a/src/cmd/gzip/zip.c
+++ b/src/cmd/gzip/zip.c
@@ -45,9 +45,9 @@ usage(void)
}
void
-main(int argc, char *argv[])
+main(int volatile argc, char **volatile argv)
{
- char *zfile;
+ char *volatile zfile;
int i, fd, err;
zfile = nil;