From 4d9c0c39b033159f4bd6fe279dd38d4f4a67c904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= 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/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 c9901023c3..6cd4a5a07f 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