From 4d9c0c39b033159f4bd6fe279dd38d4f4a67c904 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 21 Jun 2017 16:07:58 +0300 Subject: io: make io vtables const struct, and add accessors for them This reduces function pointers in heap, and unifies how the io functions are called. --- src/fetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fetch.c') diff --git a/src/fetch.c b/src/fetch.c index 847146f..bb2efa9 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -178,11 +178,11 @@ static int fetch_package(apk_hash_item item, void *pctx) r = apk_istream_splice(is, fd, pkg->size, progress_cb, ctx); if (fd != STDOUT_FILENO) { struct apk_file_meta meta; - is->get_meta(is, &meta); + apk_istream_get_meta(is, &meta); apk_file_meta_to_fd(fd, &meta); close(fd); } - is->close(is); + apk_istream_close(is); if (r != pkg->size) { unlinkat(ctx->outdir_fd, filename, 0); -- cgit v1.2.3-70-g09d2