diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/linklist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/linklist.h b/lib/linklist.h index f0ae3625..24a9e206 100644 --- a/lib/linklist.h +++ b/lib/linklist.h @@ -90,7 +90,7 @@ extern void list_add_list (struct list *, struct list *); #define ALL_LIST_ELEMENTS(list,node,nextnode,data) \ (node) = listhead(list), ((data) = NULL); \ (node) != NULL && \ - ((data) = listgetdata(node),(nextnode) = listnextnode(node), 1); \ + ((data) = listgetdata(node),(nextnode) = node->next, 1); \ (node) = (nextnode), ((data) = NULL) /* read-only list iteration macro. |