diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-24 21:12:58 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-24 21:12:58 +0200 |
commit | 81de30de05beebabfa72f2a01ec4f33e9a1923e3 (patch) | |
tree | ad8cd1f2192623fd6b8bbd61796736194c2db919 | |
parent | 945e9b05c910d3b946a5d5a396c5a7e075513e6e (diff) | |
download | busybox-w32-81de30de05beebabfa72f2a01ec4f33e9a1923e3.tar.gz busybox-w32-81de30de05beebabfa72f2a01ec4f33e9a1923e3.tar.bz2 busybox-w32-81de30de05beebabfa72f2a01ec4f33e9a1923e3.zip |
gzip: unbreak FEATURE_GZIP_LEVELS, closes 11171
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/gzip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index c5a1fe9b4..74d5d685f 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -333,12 +333,6 @@ struct globals { | |||
333 | /* DECLARE(Pos, head, 1<<HASH_BITS); */ | 333 | /* DECLARE(Pos, head, 1<<HASH_BITS); */ |
334 | #define head (G1.prev + WSIZE) /* hash head (see deflate.c) */ | 334 | #define head (G1.prev + WSIZE) /* hash head (see deflate.c) */ |
335 | 335 | ||
336 | /* =========================================================================== */ | ||
337 | /* all members below are zeroed out in pack_gzip() for each next file */ | ||
338 | |||
339 | uint32_t crc; /* shift register contents */ | ||
340 | /*uint32_t *crc_32_tab;*/ | ||
341 | |||
342 | #if ENABLE_FEATURE_GZIP_LEVELS | 336 | #if ENABLE_FEATURE_GZIP_LEVELS |
343 | unsigned max_chain_length; | 337 | unsigned max_chain_length; |
344 | unsigned max_lazy_match; | 338 | unsigned max_lazy_match; |
@@ -350,6 +344,12 @@ struct globals { | |||
350 | #define nice_match (G1.nice_match) | 344 | #define nice_match (G1.nice_match) |
351 | #endif | 345 | #endif |
352 | 346 | ||
347 | /* =========================================================================== */ | ||
348 | /* all members below are zeroed out in pack_gzip() for each next file */ | ||
349 | |||
350 | uint32_t crc; /* shift register contents */ | ||
351 | /*uint32_t *crc_32_tab;*/ | ||
352 | |||
353 | /* window position at the beginning of the current output block. Gets | 353 | /* window position at the beginning of the current output block. Gets |
354 | * negative when the window is moved backwards. | 354 | * negative when the window is moved backwards. |
355 | */ | 355 | */ |