aboutsummaryrefslogtreecommitdiff
path: root/lib/io/test
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-04 15:40:29 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-04 15:40:29 +0200
commit8af4ee6f415fe316894e4423235dfc4ee70d8cbb (patch)
treeeb0cb6e236276e3bfa39aff7c7b2ec771ee8d171 /lib/io/test
parent723306c417b3b0f8e6a3904906d6c5612cace432 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io/test')
-rw-r--r--lib/io/test/stream_splice.c2
1 files changed, 1 insertions, 1 deletions
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)