From 1370963723917eed6c93e28c9970a2b27be57ea4 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 4 Jun 2023 20:26:14 +0200 Subject: libio: remove buffer_offset from istream_t Instead, make the buffer const, let the user adjust the pointer and size. The offset can then be inferred in precache. Signed-off-by: David Oberhollenzer --- lib/io/test/istream_skip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/io/test/istream_skip.c') diff --git a/lib/io/test/istream_skip.c b/lib/io/test/istream_skip.c index 40d4ea4..c54a9cd 100644 --- a/lib/io/test/istream_skip.c +++ b/lib/io/test/istream_skip.c @@ -90,7 +90,7 @@ int main(int argc, char **argv) } TEST_ASSERT(dummy->eof); - TEST_ASSERT(dummy->buffer_offset >= dummy->buffer_used); + TEST_ASSERT(dummy->buffer_used == 0); sqfs_drop(dummy); return EXIT_SUCCESS; } -- cgit v1.2.3