aboutsummaryrefslogtreecommitdiff
path: root/bin/tar2sqfs
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 /bin/tar2sqfs
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 'bin/tar2sqfs')
-rw-r--r--bin/tar2sqfs/src/process_tarball.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tar2sqfs/src/process_tarball.c b/bin/tar2sqfs/src/process_tarball.c
index ef49d20..76c7dc1 100644
--- a/bin/tar2sqfs/src/process_tarball.c
+++ b/bin/tar2sqfs/src/process_tarball.c
@@ -28,7 +28,7 @@ static int write_file(sqfs_writer_t *sqfs, dir_iterator_t *it,
}
do {
- ret = ostream_append_from_istream(out, in, cfg.block_size);
+ ret = istream_splice(in, out, cfg.block_size);
} while (ret > 0);
ostream_flush(out);