]> mj.ucw.cz Git - netgrind.git/commitdiff
Fix the lists.
authorMartin Mares <mj@ucw.cz>
Sat, 7 Jun 2003 22:40:30 +0000 (22:40 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 7 Jun 2003 22:40:30 +0000 (22:40 +0000)
lib/lists.h

index 325654aa4acf9ad86dac4a634cd8f93813bfcbea..b5a232b2be3a96f7d2f359f3def725361c4a645d 100644 (file)
@@ -38,7 +38,7 @@ static inline void *list_prev(list *l, node *n)
   return (n->prev != &l->head) ? (void *) n->prev : NULL;
 }
 
-#define WALK_LIST(n,list) for(n=(void*)(list).head; ((node*)(n))->next != &(list).head; n=(void*)((node*)(n))->next)
+#define WALK_LIST(n,list) for(n=(void*)&(list).head; ((node*)(n))->next != &(list).head; n=(void*)((node*)(n))->next)
 
 static inline void list_insert(node *what, node *after)
 {