summaryrefslogtreecommitdiff
path: root/src/app_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_stats.c')
-rw-r--r--src/app_stats.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/app_stats.c b/src/app_stats.c
index 583e4c6..7e60494 100644
--- a/src/app_stats.c
+++ b/src/app_stats.c
@@ -24,8 +24,6 @@ static int list_count(struct list_head *h)
static int stats_main(void *ctx, struct apk_database *db, struct apk_string_array *args)
{
- extern struct apk_hash atom_hash;
-
printf(
"installed:\n"
" packages: %d\n"
@@ -46,7 +44,7 @@ static int stats_main(void *ctx, struct apk_database *db, struct apk_string_arra
list_count(&db->installed.triggers),
db->available.names.num_items,
db->available.packages.num_items,
- atom_hash.num_items
+ db->atoms.hash.num_items
);
return 0;
}