summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-07 19:39:54 +0000
committerDenis Vlasenko2007-01-07 19:39:54 +0000
commitef87d46b8c6ac3be21bcd6f1cad6533289e33f42 (patch)
treef5f314f8faebce5fedad31bee5d3140aa1df9e7d /archival
parent1a03c21adfd1da80893aac75bb57094c702db031 (diff)
downloadbusybox-ef87d46b8c6ac3be21bcd6f1cad6533289e33f42.zip
busybox-ef87d46b8c6ac3be21bcd6f1cad6533289e33f42.tar.gz
gzip cleanup part #7
Diffstat (limited to 'archival')
-rw-r--r--archival/gzip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 758c70a..7683695 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -616,9 +616,11 @@ static void copy_block(char *buf, unsigned len, int header)
* (except for the last MIN_MATCH-1 bytes of the input file).
*/
#define INSERT_STRING(s, match_head) \
- (UPDATE_HASH(ins_h, window[(s) + MIN_MATCH-1]), \
- prev[(s) & WMASK] = match_head = head[ins_h], \
- head[ins_h] = (s))
+{ \
+ UPDATE_HASH(ins_h, window[(s) + MIN_MATCH-1]); \
+ prev[(s) & WMASK] = match_head = head[ins_h]; \
+ head[ins_h] = (s); \
+}
/* ===========================================================================
* Initialize the "longest match" routines for a new file
@@ -898,9 +900,7 @@ static ulg deflate(void)
* match is not better, output the previous match:
*/
if (prev_length >= MIN_MATCH && match_length <= prev_length) {
-
check_match(strstart - 1, prev_match, prev_length);
-
flush = ct_tally(strstart - 1 - prev_match, prev_length - MIN_MATCH);
/* Insert in hash table all strings up to the end of the match.