opkg: refactory active_list_next remove unnecessary field.
[oweals/opkg-lede.git] / tests / opkg_active_list_test.c
index 88371a2f74488f95ae127e37033bcec1d5b964db..f7bd390e181b9ffd68d8e644f1a548fbea2ee021 100644 (file)
@@ -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);
     }