From 19c56406c71b82a22e98026cf594ed03a6b5dbc8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 7 Jun 2003 22:40:30 +0000 Subject: [PATCH] Fix the lists. --- lib/lists.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lists.h b/lib/lists.h index 325654a..b5a232b 100644 --- a/lib/lists.h +++ b/lib/lists.h @@ -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) { -- 2.39.2