diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-06-09 13:53:53 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-06-09 13:53:53 +0200 |
commit | 115ba7e0830a00a7b0bce5887c8ffeba78e3ab53 (patch) | |
tree | d376e30d5e830fc6292480203e7e39a6f9017243 /lib/io/src/xfrm | |
parent | 9a4110f3c205107a3a48a0e48b760abf3cd1f3bc (diff) |
libio: remove eof flag from istream_t interface
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io/src/xfrm')
-rw-r--r-- | lib/io/src/xfrm/istream.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/io/src/xfrm/istream.c b/lib/io/src/xfrm/istream.c index a89ac3d..2ada5db 100644 --- a/lib/io/src/xfrm/istream.c +++ b/lib/io/src/xfrm/istream.c @@ -20,9 +20,6 @@ static int xfrm_precache(istream_t *base) istream_xfrm_t *xfrm = (istream_xfrm_t *)base; int ret, sret; - if (base->eof) - return 0; - assert(base->buffer >= xfrm->uncompressed); assert(base->buffer <= (xfrm->uncompressed + BUFSZ)); assert(base->buffer_used <= BUFSZ); @@ -73,11 +70,8 @@ static int xfrm_precache(istream_t *base) if (ret == XFRM_STREAM_BUFFER_FULL || out_off >= BUFSZ) break; - if (mode == XFRM_STREAM_FLUSH_FULL) { - if (base->buffer_used == 0) - base->eof = true; + if (mode == XFRM_STREAM_FLUSH_FULL) break; - } } return 0; @@ -115,7 +109,6 @@ istream_t *istream_xfrm_create(istream_t *strm, xfrm_stream_t *xfrm) base->precache = xfrm_precache; base->get_filename = xfrm_get_filename; base->buffer = stream->uncompressed; - base->eof = false; return base; fail: fprintf(stderr, "%s: error initializing decompressor stream.\n", |