summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/lists.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lists.h b/lib/lists.h
index ae02ad4..a60bf16 100644
--- a/lib/lists.h
+++ b/lib/lists.h
@@ -20,7 +20,7 @@ typedef struct list { /* In fact two overlayed nodes */
#define NODE (node *)
#define HEAD(list) ((void *)((list).head))
#define TAIL(list) ((void *)((list).tail))
-#define WALK_LIST(n,list) for((NODE (n))=HEAD(list);(NODE (n))->next; \
+#define WALK_LIST(n,list) for((n)=HEAD(list);(NODE (n))->next; \
n=(void *)((NODE (n))->next))
#define WALK_LIST_DELSAFE(n,ne,list) \
if ( ((NODE n) = HEAD(list)) ) \