From 31acd1ba0a091577983ec02b336fe6388e80a942 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 17 Oct 2007 10:14:11 +0000 Subject: bzip2: more of code shrink compressStream 503 473 -30 BZ2_bzCompress 78 - -78 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-108) Total: -108 bytes text data bss dec hex filename 676300 2538 12104 690942 a8afe busybox_old 676192 2538 12104 690834 a8a92 busybox_unstripped --- archival/bz/bzlib.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'archival/bz') diff --git a/archival/bz/bzlib.c b/archival/bz/bzlib.c index cdb596c..9957c2f 100644 --- a/archival/bz/bzlib.c +++ b/archival/bz/bzlib.c @@ -76,11 +76,9 @@ void init_RL(EState* s) static -Bool isempty_RL(EState* s) +int isempty_RL(EState* s) { - if (s->state_in_ch < 256 && s->state_in_len > 0) - return False; - return True; + return (s->state_in_ch >= 256 || s->state_in_len <= 0); } @@ -333,7 +331,7 @@ int BZ2_bzCompress(bz_stream *strm, int action) } #ifdef FLUSH_IS_UNUSED -case_BZ_M_FLUSHING: + case_BZ_M_FLUSHING: case BZ_M_FLUSHING: /*if (s->avail_in_expect != s->strm->avail_in) return BZ_SEQUENCE_ERROR;*/ -- cgit v1.1