summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1998-07-20 20:05:40 +0000
committerPavel Machek <pavel@ucw.cz>1998-07-20 20:05:40 +0000
commita872b0f7dae38cfef574d0d3b30609e968cdf95b (patch)
treefc11b50afa96ec701e37119f9990320bf2e08236 /lib
parentc25e90efed6bc76d05370403839640ed05017506 (diff)
Reversed buggy patch.
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 ae02ad43..a60bf16e 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)) ) \