1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-15 10:10:39 +02:00

m1/perf/sched.c (foreach): improved type safety

This commit is contained in:
Werner Almesberger 2011-09-21 17:50:24 -03:00
parent 23c7bd6ce1
commit b177acd632

View File

@ -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)