summaryrefslogtreecommitdiff
path: root/src/adb_walk_text.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-07-17 17:57:07 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-07-22 15:30:08 +0300
commit796d29831360c55d8b8b7d9aa5f33c817094c1bf (patch)
treeddb51a2c60ece9f79b48b05c1d2845ef1ba4509e /src/adb_walk_text.c
parentb559a81694d8a95ac786104516aebf98d04b84bc (diff)
downloadapk-tools-796d29831360c55d8b8b7d9aa5f33c817094c1bf.tar.gz
apk-tools-796d29831360c55d8b8b7d9aa5f33c817094c1bf.tar.bz2
apk-tools-796d29831360c55d8b8b7d9aa5f33c817094c1bf.tar.xz
apk-tools-796d29831360c55d8b8b7d9aa5f33c817094c1bf.zip
rework apk_istream_splice and apk_istream_tee
- apk_istream_splice usage is converted to apk_stream_copy which is the newer variant. With caching enabled by default, this makes more sense mmapping or using separate buffers. - apk_istream_tee is reworked to write to apk_ostream, which simplifies quite a bit of various things
Diffstat (limited to 'src/adb_walk_text.c')
-rw-r--r--src/adb_walk_text.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/adb_walk_text.c b/src/adb_walk_text.c
index 972df4f..1b7f5cf 100644
--- a/src/adb_walk_text.c
+++ b/src/adb_walk_text.c
@@ -126,6 +126,5 @@ int adb_walk_text(struct adb_walk *d, struct apk_istream *is)
d->ops->end(d);
err:
- if (r) apk_istream_error(is, r);
- return apk_istream_close(is);
+ return apk_istream_close_error(is, r);
}