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/info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/info.c') diff --git a/src/info.c b/src/info.c index 262049f..a1bc609 100644 --- a/src/info.c +++ b/src/info.c @@ -140,8 +140,8 @@ static void info_who_owns(struct info_ctx *ctx, struct apk_database *db, os = apk_ostream_to_fd(STDOUT_FILENO); if (!IS_ERR_OR_NULL(os)) { apk_deps_write(db, deps, os, APK_BLOB_PTR_LEN(" ", 1)); - os->write(os, "\n", 1); - os->close(os); + apk_ostream_write(os, "\n", 1); + apk_ostream_close(os); } } apk_dependency_array_free(&deps); -- cgit v1.2.3-60-g2f50