summaryrefslogtreecommitdiff
path: root/src/app_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_update.c')
-rw-r--r--src/app_update.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app_update.c b/src/app_update.c
index 4fa24f8..3a01381 100644
--- a/src/app_update.c
+++ b/src/app_update.c
@@ -14,9 +14,10 @@
#include "apk_version.h"
#include "apk_print.h"
-static int update_main(void *ctx, struct apk_database *db, struct apk_string_array *args)
+static int update_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 apk_repository *repo;
int i;
char buf[32] = "OK:";