list: fix LIF_LIST_FOREACH_SAFE

This commit is contained in:
Ariadne Conill 2020-07-18 03:01:15 -06:00
parent a43f8b988d
commit 803f51efe8

View file

@ -37,6 +37,6 @@ extern void lif_node_delete(struct lif_node *node, struct lif_list *list);
for ((iter) = (head); (iter) != NULL; (iter) = (iter)->next) for ((iter) = (head); (iter) != NULL; (iter) = (iter)->next)
#define LIF_LIST_FOREACH_SAFE(iter, iter_next, head) \ #define LIF_LIST_FOREACH_SAFE(iter, iter_next, head) \
for ((iter) = (head); (iter) != NULL; (iter) = (iter_next), (iter_next) = (iter) != NULL ? (iter)->next : NULL) for ((iter) = (head), (iter_next) = (iter)->next; (iter) != NULL; (iter) = (iter_next), (iter_next) = (iter) != NULL ? (iter)->next : NULL)
#endif #endif