pkg: move active_list structure out of pkg_t
[oweals/opkg-lede.git] / libopkg / opkg_cmd.c
index c50d8f9cf8f72582bc20c55da8510d29f33efb5f..8fc846ad57aeab890c2c927fc0471fbcd42e1e63 100644 (file)
@@ -665,7 +665,7 @@ static int opkg_list_upgradable_cmd(int argc, char **argv)
        char *old_v, *new_v;
        for (node = active_list_next(head, head); node;
             node = active_list_next(head, node)) {
-               _old_pkg = list_entry(node, pkg_t, list);
+               _old_pkg = node->pkg;
                _new_pkg =
                    pkg_hash_fetch_best_installation_candidate_by_name
                    (_old_pkg->name);