aboutsummaryrefslogtreecommitdiff
path: root/archival/bz/bzlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/bz/bzlib.c')
-rw-r--r--archival/bz/bzlib.c8
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)
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;*/