summaryrefslogtreecommitdiff
path: root/gunzip.c
diff options
context:
space:
mode:
authorMatt Kraai2001-04-18 16:05:34 +0000
committerMatt Kraai2001-04-18 16:05:34 +0000
commit53265546a69d5810d5e19b22d6a5095f04eca6be (patch)
tree6a920a60f2efdfbf4c34bea6542568d18aee9471 /gunzip.c
parent96dcd19b8a8e9d6fc8c17c20c42d32665b68c141 (diff)
downloadbusybox-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gunzip.c b/gunzip.c
index e6f6bdf..b4edb25 100644
--- a/gunzip.c
+++ b/gunzip.c
@@ -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 */