mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-18 16:41:32 +02:00
m1/perf/sched.c (foreach): improved type safety
This commit is contained in:
parent
23c7bd6ce1
commit
b177acd632
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user