diff options
author | Denis Vlasenko | 2006-10-01 16:44:04 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-01 16:44:04 +0000 |
commit | bb119d059a80c85fe844b9f9c770e0c77aeb49e6 (patch) | |
tree | 70651270deb869fad260753415fa1c5246df6427 /archival | |
parent | 97a8dd3857aea9730382e2975a2ee2000fd23ebb (diff) | |
download | busybox-bb119d059a80c85fe844b9f9c770e0c77aeb49e6.zip busybox-bb119d059a80c85fe844b9f9c770e0c77aeb49e6.tar.gz |
gzip: add a bit of comment. The code itself
is too bloated to work on it...
Diffstat (limited to 'archival')
-rw-r--r-- | archival/gzip.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index bb58158..2fc9f76 100644 --- a/archival/gzip.c +++ b/archival/gzip.c @@ -16,7 +16,12 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -// TODO: full support for -v for DESKTOP +/* TODO: full support for -v for DESKTOP +/usr/bin/gzip -v a bogus aa +a: 85.1% -- replaced with a.gz +gzip: bogus: No such file or directory +aa: 85.1% -- replaced with aa.gz +*/ #define SMALL_MEM @@ -125,8 +130,8 @@ typedef int file_t; /* Do not use stdio */ #define ASCII 1 #ifndef WSIZE -# define WSIZE 0x8000 /* window size--must be a power of two, and */ -#endif /* at least 32K for zip's deflate method */ +# define WSIZE 0x8000 /* window size--must be a power of two, and */ +#endif /* at least 32K for zip's deflate method */ #define MIN_MATCH 3 #define MAX_MATCH 258 @@ -2402,7 +2407,6 @@ static int zip(int in, int out) /* Write the header to the gzip file. See algorithm.doc for the format */ - method = DEFLATED; put_header_byte(GZIP_MAGIC[0]); /* magic header */ put_header_byte(GZIP_MAGIC[1]); |