aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-07 19:39:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-07 19:39:54 +0000
commitef87d46b8c6ac3be21bcd6f1cad6533289e33f42 (patch)
treef5f314f8faebce5fedad31bee5d3140aa1df9e7d
parent1a03c21adfd1da80893aac75bb57094c702db031 (diff)
downloadbusybox-w32-ef87d46b8c6ac3be21bcd6f1cad6533289e33f42.tar.gz
busybox-w32-ef87d46b8c6ac3be21bcd6f1cad6533289e33f42.tar.bz2
busybox-w32-ef87d46b8c6ac3be21bcd6f1cad6533289e33f42.zip
gzip cleanup part #7
-rw-r--r--archival/gzip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 758c70a4b..76836951f 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -616,9 +616,11 @@ static void copy_block(char *buf, unsigned len, int header)
616 * (except for the last MIN_MATCH-1 bytes of the input file). 616 * (except for the last MIN_MATCH-1 bytes of the input file).
617 */ 617 */
618#define INSERT_STRING(s, match_head) \ 618#define INSERT_STRING(s, match_head) \
619 (UPDATE_HASH(ins_h, window[(s) + MIN_MATCH-1]), \ 619{ \
620 prev[(s) & WMASK] = match_head = head[ins_h], \ 620 UPDATE_HASH(ins_h, window[(s) + MIN_MATCH-1]); \
621 head[ins_h] = (s)) 621 prev[(s) & WMASK] = match_head = head[ins_h]; \
622 head[ins_h] = (s); \
623}
622 624
623/* =========================================================================== 625/* ===========================================================================
624 * Initialize the "longest match" routines for a new file 626 * Initialize the "longest match" routines for a new file
@@ -898,9 +900,7 @@ static ulg deflate(void)
898 * match is not better, output the previous match: 900 * match is not better, output the previous match:
899 */ 901 */
900 if (prev_length >= MIN_MATCH && match_length <= prev_length) { 902 if (prev_length >= MIN_MATCH && match_length <= prev_length) {
901
902 check_match(strstart - 1, prev_match, prev_length); 903 check_match(strstart - 1, prev_match, prev_length);
903
904 flush = ct_tally(strstart - 1 - prev_match, prev_length - MIN_MATCH); 904 flush = ct_tally(strstart - 1 - prev_match, prev_length - MIN_MATCH);
905 905
906 /* Insert in hash table all strings up to the end of the match. 906 /* Insert in hash table all strings up to the end of the match.