diff options
Diffstat (limited to 'src/app_index.c')
-rw-r--r-- | src/app_index.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app_index.c b/src/app_index.c index 707bd94..896474b 100644 --- a/src/app_index.c +++ b/src/app_index.c @@ -105,9 +105,10 @@ static int warn_if_no_providers(apk_hash_item item, void *ctx) return 0; } -static int index_main(void *ctx, struct apk_database *db, struct apk_string_array *args) +static int index_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 counts counts = { .out = out }; struct apk_ostream *os; struct apk_file_info fi; |