diff options
Diffstat (limited to 'src/app_stats.c')
-rw-r--r-- | src/app_stats.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/app_stats.c b/src/app_stats.c index 7e60494..317edc7 100644 --- a/src/app_stats.c +++ b/src/app_stats.c @@ -22,9 +22,12 @@ static int list_count(struct list_head *h) return c; } -static int stats_main(void *ctx, struct apk_database *db, struct apk_string_array *args) +static int stats_main(void *ctx, struct apk_ctx *ac, struct apk_string_array *args) { - printf( + struct apk_out *out = &ac->out; + struct apk_database *db = ac->db; + + apk_out(out, "installed:\n" " packages: %d\n" " dirs: %d\n" |