From 8af4ee6f415fe316894e4423235dfc4ee70d8cbb Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 4 Jun 2023 15:40:29 +0200 Subject: libio: move splice function from ostream to istream It touches internals of the istream, particularly the buffer, but not of the ostream. It really belongs to istream_t. Signed-off-by: David Oberhollenzer --- lib/io/test/stream_splice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/io/test') diff --git a/lib/io/test/stream_splice.c b/lib/io/test/stream_splice.c index 5379b39..9008d83 100644 --- a/lib/io/test/stream_splice.c +++ b/lib/io/test/stream_splice.c @@ -79,7 +79,7 @@ int main(int argc, char **argv) TEST_NOT_NULL(in); for (;;) { - ret = ostream_append_from_istream(&out, in, 211); + ret = istream_splice(in, &out, 211); TEST_ASSERT(ret >= 0); if (ret == 0) -- cgit v1.2.3