diff options
author | Pavel Machek <pavel@ucw.cz> | 1998-07-20 20:05:40 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1998-07-20 20:05:40 +0000 |
commit | a872b0f7dae38cfef574d0d3b30609e968cdf95b (patch) | |
tree | fc11b50afa96ec701e37119f9990320bf2e08236 /lib | |
parent | c25e90efed6bc76d05370403839640ed05017506 (diff) |
Reversed buggy patch.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lists.h | 2 |
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)) ) \ |