summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/list.h b/src/list.h
index 4441a24..ff01f13 100644
--- a/src/list.h
+++ b/src/list.h
@@ -82,8 +82,8 @@
#define IVY_LIST_EACH( list, p ) \
for ( p = list ; p ; p = p -> next )
-#define IVY_LIST_EACH_SAFE( list, p, next )\
-for ( p = list ; (next = p ? p->next: p ),p ; p = next )
+#define IVY_LIST_EACH_SAFE( list, p, p_next )\
+for ( p = list ; (p_next = p ? p->next: p ),p ; p = p_next )
#define IVY_LIST_EMPTY( list ) \
{ \