From dc2a09c8ac265186ee78e025f45a523c53e3218d Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:33:16 -0500 Subject: opkg: introduce active list into pkg_t git-svn-id: http://opkg.googlecode.com/svn/trunk@173 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/active_list.c') diff --git a/libopkg/active_list.c b/libopkg/active_list.c index 2694689..08e1bd7 100644 --- a/libopkg/active_list.c +++ b/libopkg/active_list.c @@ -86,6 +86,10 @@ static void list_head_clear (struct list_head *head) { } void active_list_clear(struct active_list *head) { list_head_clear(&head->node); + if (head->depend.next != &head->depend) { + list_head_clear(&head->depend); + } + active_list_init(head); } void active_list_add_depend(struct active_list *node, struct active_list *depend) { -- cgit v0.9.1