diff options
author | Timo Teras <timo.teras@iki.fi> | 2008-11-27 20:25:01 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2008-11-27 20:25:01 +0200 |
commit | f0609951b9fd2938c0f30853e0aa6b08b8698a88 (patch) | |
tree | 3b1f72cbaad90d715d60643c0fac98b7aaedd37e /src/ver.c | |
parent | 1a7f3e3678844165d2660ebff09da26b9ba01576 (diff) | |
download | apk-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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++) { |