diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-13 03:36:03 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-13 03:36:03 +0000 |
commit | 77f1ec1b9bf100e6c10aa0856c7156e321511785 (patch) | |
tree | f20e5a9062ecad82a43bde81e3041a19c4292733 /archival/gzip.c | |
parent | 11c23d7b990eae27357e5a41a97d62b9a214f7db (diff) | |
download | busybox-w32-77f1ec1b9bf100e6c10aa0856c7156e321511785.tar.gz busybox-w32-77f1ec1b9bf100e6c10aa0856c7156e321511785.tar.bz2 busybox-w32-77f1ec1b9bf100e6c10aa0856c7156e321511785.zip |
bzip2: port bzip2 1.0.4 to busybox. note: bzip2 code resides
in separate directory (archival/bz/*)
and is covered by BSD-style license.
code size: 13k
Diffstat (limited to 'archival/gzip.c')
-rw-r--r-- | archival/gzip.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index bc7502e70..00299b17c 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -2032,15 +2032,14 @@ int gzip_main(int argc, char **argv) | |||
2032 | 2032 | ||
2033 | /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */ | 2033 | /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */ |
2034 | opt = getopt32(argv, "cfv" USE_GUNZIP("d") "q123456789" ); | 2034 | opt = getopt32(argv, "cfv" USE_GUNZIP("d") "q123456789" ); |
2035 | option_mask32 &= 0x7; /* Clear -d, ignore -q, -0..9 */ | ||
2036 | //if (opt & 0x1) // -c | ||
2037 | //if (opt & 0x2) // -f | ||
2038 | //if (opt & 0x4) // -v | ||
2039 | #if ENABLE_GUNZIP /* gunzip_main may not be visible... */ | 2035 | #if ENABLE_GUNZIP /* gunzip_main may not be visible... */ |
2040 | if (opt & 0x8) { // -d | 2036 | if (opt & 0x8) // -d |
2041 | return gunzip_main(argc, argv); | 2037 | return gunzip_main(argc, argv); |
2042 | } | ||
2043 | #endif | 2038 | #endif |
2039 | option_mask32 &= 0x7; /* ignore -q, -0..9 */ | ||
2040 | //if (opt & 0x1) // -c | ||
2041 | //if (opt & 0x2) // -f | ||
2042 | //if (opt & 0x4) // -v | ||
2044 | argv += optind; | 2043 | argv += optind; |
2045 | 2044 | ||
2046 | PTR_TO_GLOBALS = xzalloc(sizeof(struct globals) + sizeof(struct globals2)) | 2045 | PTR_TO_GLOBALS = xzalloc(sizeof(struct globals) + sizeof(struct globals2)) |