From b177acd63283aa3f985798bbda91b3f3119bd423 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 21 Sep 2011 17:50:24 -0300 Subject: [PATCH] m1/perf/sched.c (foreach): improved type safety --- m1/perf/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m1/perf/sched.c b/m1/perf/sched.c index ed77d44..594291a 100644 --- a/m1/perf/sched.c +++ b/m1/perf/sched.c @@ -217,7 +217,7 @@ static void list_concat(struct list *a, struct list *b) */ #define foreach(var, head) \ - for (var = (void *) ((struct list *) (head))->next; \ + for (var = (void *) ((head))->next; \ (var) != (void *) (head); \ var = (void *) ((struct list *) (var))->next)