]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Reversed buggy patch.
authorPavel Machek <pavel@ucw.cz>
Mon, 20 Jul 1998 20:05:40 +0000 (20:05 +0000)
committerPavel Machek <pavel@ucw.cz>
Mon, 20 Jul 1998 20:05:40 +0000 (20:05 +0000)
lib/lists.h

index ae02ad4334b0ae68172c908e37c2650abdf0a756..a60bf16e395ebf1029e91c0dbe135afd0dbbb0ba 100644 (file)
@@ -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)) ) \