From ec0aae117bff7f8c1a667d3e5ee9d45c2ab68be8 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. (cherry picked from commit 09ca58863af02d11e8dbf066b714464fb1638e6f) --- src/apk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/apk.c') diff --git a/src/apk.c b/src/apk.c index c990102..6cd4a5a 100644 --- a/src/apk.c +++ b/src/apk.c @@ -548,7 +548,7 @@ int main(int argc, char **argv) struct apk_bstream *bs = apk_bstream_from_file(AT_FDCWD, test_installed_db); if (!IS_ERR_OR_NULL(bs)) { apk_db_index_read(&db, bs, -1); - bs->close(bs, NULL); + apk_bstream_close(bs, NULL); } } for (i = 0; i < test_repos->num; i++) { @@ -576,7 +576,7 @@ int main(int argc, char **argv) } apk_db_index_read(&db, bs, repo); - bs->close(bs, NULL); + apk_bstream_close(bs, NULL); if (repo != -2) { if (!(apk_flags & APK_NO_NETWORK)) db.available_repos |= BIT(repo); -- cgit v1.2.3-70-g09d2