diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-17 10:14:11 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-17 10:14:11 +0000 |
commit | 31acd1ba0a091577983ec02b336fe6388e80a942 (patch) | |
tree | c7bab1849f82338703cbfc9f63ff8d70054684d3 /archival/bz | |
parent | 16e74b74648a8f013065fcc4356164c78d7f22d5 (diff) | |
download | busybox-w32-31acd1ba0a091577983ec02b336fe6388e80a942.tar.gz busybox-w32-31acd1ba0a091577983ec02b336fe6388e80a942.tar.bz2 busybox-w32-31acd1ba0a091577983ec02b336fe6388e80a942.zip |
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
Diffstat (limited to 'archival/bz')
-rw-r--r-- | archival/bz/bzlib.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/archival/bz/bzlib.c b/archival/bz/bzlib.c index cdb596cb1..9957c2fbd 100644 --- a/archival/bz/bzlib.c +++ b/archival/bz/bzlib.c | |||
@@ -76,11 +76,9 @@ void init_RL(EState* s) | |||
76 | 76 | ||
77 | 77 | ||
78 | static | 78 | static |
79 | Bool isempty_RL(EState* s) | 79 | int isempty_RL(EState* s) |
80 | { | 80 | { |
81 | if (s->state_in_ch < 256 && s->state_in_len > 0) | 81 | return (s->state_in_ch >= 256 || s->state_in_len <= 0); |
82 | return False; | ||
83 | return True; | ||
84 | } | 82 | } |
85 | 83 | ||
86 | 84 | ||
@@ -333,7 +331,7 @@ int BZ2_bzCompress(bz_stream *strm, int action) | |||
333 | } | 331 | } |
334 | 332 | ||
335 | #ifdef FLUSH_IS_UNUSED | 333 | #ifdef FLUSH_IS_UNUSED |
336 | case_BZ_M_FLUSHING: | 334 | case_BZ_M_FLUSHING: |
337 | case BZ_M_FLUSHING: | 335 | case BZ_M_FLUSHING: |
338 | /*if (s->avail_in_expect != s->strm->avail_in) | 336 | /*if (s->avail_in_expect != s->strm->avail_in) |
339 | return BZ_SEQUENCE_ERROR;*/ | 337 | return BZ_SEQUENCE_ERROR;*/ |