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/state.c | |
parent | 1a7f3e3678844165d2660ebff09da26b9ba01576 (diff) | |
download | apk-tools-f0609951b9fd2938c0f30853e0aa6b08b8698a88.tar.gz apk-tools-f0609951b9fd2938c0f30853e0aa6b08b8698a88.tar.bz2 apk-tools-f0609951b9fd2938c0f30853e0aa6b08b8698a88.tar.xz apk-tools-f0609951b9fd2938c0f30853e0aa6b08b8698a88.zip |
hash, db: use apk_blob_t and list_*
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/state.c b/src/state.c index 119bebc..24ecda9 100644 --- a/src/state.c +++ b/src/state.c @@ -152,8 +152,7 @@ static int apk_state_commit_deps(struct apk_state *state, int apk_state_commit(struct apk_state *state, struct apk_database *db) { - struct apk_package *pkg; - struct hlist_node *c, *n; + struct apk_package *pkg, *n; int r; /* Check all dependencies */ @@ -162,7 +161,7 @@ int apk_state_commit(struct apk_state *state, return r; /* And purge all installed packages that were not considered */ - hlist_for_each_entry_safe(pkg, c, n, &db->installed.packages, installed_pkgs_list) + list_for_each_entry_safe(pkg, n, &db->installed.packages, installed_pkgs_list) apk_state_commit_name(state, db, pkg->name); return 0; |