From 32ee5d15aca5dcdae46084c4a07fb7a072af379a Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:32:19 -0500 Subject: opkg: refactory active_list_next remove unnecessary field. git-svn-id: http://opkg.googlecode.com/svn/trunk@168 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'tests') diff --git a/tests/opkg_active_list_test.c b/tests/opkg_active_list_test.c index 88371a2..f7bd390 100644 --- a/tests/opkg_active_list_test.c +++ b/tests/opkg_active_list_test.c @@ -110,7 +110,7 @@ int main (void) { printf ("%s ",test->str); } printf("\n"); - for(ptr = active_list_next(&head, &head); ptr ;ptr = active_list_next(&head, ptr)) { + for(ptr = active_list_next(&head, NULL); ptr ;ptr = active_list_next(&head, ptr)) { test = list_entry(ptr, struct active_test, list); printf ("%s ",test->str); } -- cgit v0.9.1