summaryrefslogtreecommitdiffstats
path: root/src/ver.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-11-27 20:25:01 +0200
committerTimo Teras <timo.teras@iki.fi>2008-11-27 20:25:01 +0200
commitf0609951b9fd2938c0f30853e0aa6b08b8698a88 (patch)
tree3b1f72cbaad90d715d60643c0fac98b7aaedd37e /src/ver.c
parent1a7f3e3678844165d2660ebff09da26b9ba01576 (diff)
downloadapk-tools-f0609951b9fd2938c0f30853e0aa6b08b8698a88.tar.bz2
apk-tools-f0609951b9fd2938c0f30853e0aa6b08b8698a88.tar.xz
hash, db: use apk_blob_t and list_*
Diffstat (limited to 'src/ver.c')
-rw-r--r--src/ver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ver.c b/src/ver.c
index 8d62f3a..71e3d01 100644
--- a/src/ver.c
+++ b/src/ver.c
@@ -34,7 +34,6 @@ static int ver_main(int argc, char **argv)
struct apk_database db;
struct apk_name *name;
struct apk_package *pkg, *upg, *tmp;
- struct hlist_node *c;
int i, r;
if (argc == 2) {
@@ -47,7 +46,7 @@ static int ver_main(int argc, char **argv)
if (apk_db_open(&db, apk_root) < 0)
return -1;
- hlist_for_each_entry(pkg, c, &db.installed.packages, installed_pkgs_list) {
+ list_for_each_entry(pkg, &db.installed.packages, installed_pkgs_list) {
name = pkg->name;
upg = pkg;
for (i = 0; i < name->pkgs->num; i++) {