From a872b0f7dae38cfef574d0d3b30609e968cdf95b Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 20 Jul 1998 20:05:40 +0000 Subject: [PATCH] Reversed buggy patch. --- lib/lists.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) ) \