aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-07 19:39:54 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-07 19:39:54 +0000
commit316ce07cfa2cc6aee3c566f705c81f7559efb2b4 (patch)
treef5f314f8faebce5fedad31bee5d3140aa1df9e7d
parent6d0c3f3bdfbc54848ce592cf81ca358ff2df3dab (diff)
downloadbusybox-w32-316ce07cfa2cc6aee3c566f705c81f7559efb2b4.tar.gz
busybox-w32-316ce07cfa2cc6aee3c566f705c81f7559efb2b4.tar.bz2
busybox-w32-316ce07cfa2cc6aee3c566f705c81f7559efb2b4.zip
gzip cleanup part #7
git-svn-id: svn://busybox.net/trunk/busybox@17189 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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.