From 354713d2f746c197eed6a1feb4c6af3420af6c15 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Mon, 5 Oct 2020 18:52:51 +0300 Subject: rename apk_db_options to apk_ctx, rework logging makes apk_verbosity non-global fixes #10682 --- src/lua-apk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lua-apk.c') diff --git a/src/lua-apk.c b/src/lua-apk.c index 6cd0208..10d34eb 100644 --- a/src/lua-apk.c +++ b/src/lua-apk.c @@ -140,7 +140,7 @@ static int get_boolean_field(lua_State *L, int index, const char *key) return value; } -static int get_dbopts(lua_State *L, int i, struct apk_db_options *o) +static int get_ctx(lua_State *L, int i, struct apk_ctx *o) { struct flagmap *f; o->root = (char *)get_opt_string_field(L, i, "root", NULL); @@ -165,14 +165,14 @@ static struct apk_database *checkdb(lua_State *L, int index) static int Papk_db_open(lua_State *L) { - struct apk_db_options opts; + struct apk_ctx opts; struct apk_database *db; int r; memset(&opts, 0, sizeof(opts)); apk_string_array_init(&opts.repository_list); if (lua_istable(L, 1)) - get_dbopts(L, 1, &opts); + get_ctx(L, 1, &opts); else opts.open_flags |= APK_OPENF_READ; -- cgit v1.2.3-70-g09d2