From f0609951b9fd2938c0f30853e0aa6b08b8698a88 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 27 Nov 2008 20:25:01 +0200 Subject: hash, db: use apk_blob_t and list_* --- src/state.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/state.c') 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; -- cgit v1.2.3-60-g2f50