1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Simplification. bzf->handle is the same as data->file.

This commit is contained in:
Witold Filipczyk 2006-12-12 17:30:22 +01:00 committed by Kalle Olavi Niemitalo
parent 24a96717a6
commit 86b352fecc

View File

@ -160,12 +160,11 @@ bzip2_read(struct stream_encoded *stream, unsigned char *buf, int len)
{ {
struct bz2_enc_data *data = (struct bz2_enc_data *) stream->data; struct bz2_enc_data *data = (struct bz2_enc_data *) stream->data;
int err = 0; int err = 0;
struct bzFile *bzf = (struct bzFile *)data->bzfile;
if (data->last_read) if (data->last_read)
return 0; return 0;
clearerr(bzf->handle); clearerr(data->file);
len = BZ2_bzRead2(&err, data->bzfile, buf, len); len = BZ2_bzRead2(&err, data->bzfile, buf, len);
if (err == BZ_STREAM_END) if (err == BZ_STREAM_END)