aboutsummaryrefslogtreecommitdiff
path: root/gunzip.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-04-18 16:05:34 +0000
committerMatt Kraai <kraai@debian.org>2001-04-18 16:05:34 +0000
commit53265546a69d5810d5e19b22d6a5095f04eca6be (patch)
tree6a920a60f2efdfbf4c34bea6542568d18aee9471 /gunzip.c
parent96dcd19b8a8e9d6fc8c17c20c42d32665b68c141 (diff)
downloadbusybox-w32-53265546a69d5810d5e19b22d6a5095f04eca6be.tar.gz
busybox-w32-53265546a69d5810d5e19b22d6a5095f04eca6be.tar.bz2
busybox-w32-53265546a69d5810d5e19b22d6a5095f04eca6be.zip
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 e6f6bdfc1..b4edb25ac 100644
--- a/gunzip.c
+++ b/gunzip.c
@@ -91,7 +91,7 @@ extern int gunzip_main(int argc, char **argv)
91 if (strcmp(applet_name, "zcat") == 0) 91 if (strcmp(applet_name, "zcat") == 0)
92 flags |= gunzip_to_stdout; 92 flags |= gunzip_to_stdout;
93 93
94 while ((opt = getopt(argc, argv, "ctfh")) != -1) { 94 while ((opt = getopt(argc, argv, "ctfhd")) != -1) {
95 switch (opt) { 95 switch (opt) {
96 case 'c': 96 case 'c':
97 flags |= gunzip_to_stdout; 97 flags |= gunzip_to_stdout;
@@ -102,6 +102,8 @@ extern int gunzip_main(int argc, char **argv)
102 case 't': 102 case 't':
103 flags |= gunzip_test; 103 flags |= gunzip_test;
104 break; 104 break;
105 case 'd': /* Used to convert gzip to gunzip. */
106 break;
105 case 'h': 107 case 'h':
106 default: 108 default:
107 show_usage(); /* exit's inside usage */ 109 show_usage(); /* exit's inside usage */