Date:2011-09-21 22:50:24 (7 years 11 months ago)
Author:Werner Almesberger
Commit:b177acd63283aa3f985798bbda91b3f3119bd423
Message:m1/perf/sched.c (foreach): improved type safety

Files: m1/perf/sched.c (1 diff)

Change Details

m1/perf/sched.c
217217 */
218218
219219#define foreach(var, head) \
220    for (var = (void *) ((struct list *) (head))->next; \
220    for (var = (void *) ((head))->next; \
221221        (var) != (void *) (head); \
222222        var = (void *) ((struct list *) (var))->next)
223223

Archive Download the corresponding diff file

Branches:
master



interactive