diff options
Diffstat (limited to 'src/app_add.c')
-rw-r--r-- | src/app_add.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app_add.c b/src/app_add.c index 1eedcc6..42e4cd9 100644 --- a/src/app_add.c +++ b/src/app_add.c @@ -110,9 +110,10 @@ static struct apk_package *create_virtual_package(struct apk_database *db, struc return virtpkg; } -static int add_main(void *ctx, struct apk_database *db, struct apk_string_array *args) +static int add_main(void *ctx, struct apk_ctx *ac, struct apk_string_array *args) { - struct apk_out *out = &db->ctx->out; + struct apk_out *out = &ac->out; + struct apk_database *db = ac->db; struct add_ctx *actx = (struct add_ctx *) ctx; struct apk_package *virtpkg = NULL; struct apk_dependency virtdep; |