Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 617c28b8 authored by Colin Cross's avatar Colin Cross Committed by Gerrit Code Review
Browse files

Merge "Fix list_for_each_safe macro"

parents 4ecbda41 8cc74270
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -44,10 +44,10 @@ struct listnode
#define list_for_each_reverse(node, list) \
    for (node = (list)->prev; node != (list); node = node->prev)

#define list_for_each_safe(node, next, list) \
    for (node = (list)->next, next = node->next; \
#define list_for_each_safe(node, n, list) \
    for (node = (list)->next, n = node->next; \
         node != (list); \
         node = next, next = node->next)
         node = n, n = node->next)

static inline void list_init(struct listnode *node)
{