summaryrefslogtreecommitdiff
path: root/src/app_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_search.c')
-rw-r--r--src/app_search.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app_search.c b/src/app_search.c
index 11b7108..4ac4243 100644
--- a/src/app_search.c
+++ b/src/app_search.c
@@ -172,8 +172,9 @@ static int print_pkg(apk_hash_item item, void *pctx)
return 0;
}
-static int search_main(void *pctx, struct apk_database *db, struct apk_string_array *args)
+static int search_main(void *pctx, struct apk_ctx *ac, struct apk_string_array *args)
{
+ struct apk_database *db = ac->db;
struct search_ctx *ctx = (struct search_ctx *) pctx;
char *tmp, **pmatch;