diff options
author | Matt Kraai | 2001-04-18 16:05:34 +0000 |
---|---|---|
committer | Matt Kraai | 2001-04-18 16:05:34 +0000 |
commit | 53265546a69d5810d5e19b22d6a5095f04eca6be (patch) | |
tree | 6a920a60f2efdfbf4c34bea6542568d18aee9471 /gunzip.c | |
parent | 96dcd19b8a8e9d6fc8c17c20c42d32665b68c141 (diff) | |
download | busybox-53265546a69d5810d5e19b22d6a5095f04eca6be.zip busybox-53265546a69d5810d5e19b22d6a5095f04eca6be.tar.gz |
Eliminate spurious warning, convert to getopt, and eliminate redundant check.
Diffstat (limited to 'gunzip.c')
-rw-r--r-- | gunzip.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -91,7 +91,7 @@ extern int gunzip_main(int argc, char **argv) if (strcmp(applet_name, "zcat") == 0) flags |= gunzip_to_stdout; - while ((opt = getopt(argc, argv, "ctfh")) != -1) { + while ((opt = getopt(argc, argv, "ctfhd")) != -1) { switch (opt) { case 'c': flags |= gunzip_to_stdout; @@ -102,6 +102,8 @@ extern int gunzip_main(int argc, char **argv) case 't': flags |= gunzip_test; break; + case 'd': /* Used to convert gzip to gunzip. */ + break; case 'h': default: show_usage(); /* exit's inside usage */ |