aboutsummaryrefslogtreecommitdiff
path: root/lib/io/src/xfrm/istream.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-11 23:27:16 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-15 13:38:25 +0200
commit63bc750fecb00fc5878ca889204fc65510893778 (patch)
treef3a8280ce30308e6bd86e534df19599587ce5914 /lib/io/src/xfrm/istream.c
parentd8a01253aba94759aae2bbc78e9103843f28dd78 (diff)
libio: remove single line wrapper functions
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io/src/xfrm/istream.c')
-rw-r--r--lib/io/src/xfrm/istream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/io/src/xfrm/istream.c b/lib/io/src/xfrm/istream.c
index c9bc41a..632409c 100644
--- a/lib/io/src/xfrm/istream.c
+++ b/lib/io/src/xfrm/istream.c
@@ -38,8 +38,8 @@ static int precache(istream_t *base)
const sqfs_u8 *ptr;
size_t avail;
- ret = istream_get_buffered_data(xfrm->wrapped, &ptr, &avail,
- sizeof(xfrm->uncompressed));
+ ret = xfrm->wrapped->get_buffered_data(xfrm->wrapped, &ptr,
+ &avail, BUFSZ);
if (ret < 0)
return ret;
if (ret > 0)
@@ -58,7 +58,7 @@ static int precache(istream_t *base)
}
xfrm->buffer_used = out_off;
- istream_advance_buffer(xfrm->wrapped, in_off);
+ xfrm->wrapped->advance_buffer(xfrm->wrapped, in_off);
if (ret == XFRM_STREAM_BUFFER_FULL || out_off >= BUFSZ)
break;