pkg: move active_list structure out of pkg_t
[oweals/opkg-lede.git] / libopkg / opkg.c
index 61c73065c5457f53d37cbe4865263e573908c3bc..9e278cd7af621a1b47eb90fc73a96f146c2aa8e4 100644 (file)
@@ -707,7 +707,7 @@ opkg_list_upgradable_packages(opkg_package_callback_t callback, void *user_data)
        head = prepare_upgrade_list();
        for (node = active_list_next(head, head); node;
             node = active_list_next(head, node)) {
-               old = list_entry(node, pkg_t, list);
+               old = node->pkg;
                new =
                    pkg_hash_fetch_best_installation_candidate_by_name(old->
                                                                       name);