diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-09-07 19:48:00 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-09-07 19:48:00 +0000 |
commit | b1f70bd88e1320c8a578b5f576ae5e58efd3ee33 (patch) | |
tree | 23ca59d25887ff5bc2b652d377940b1809643373 /sys | |
parent | c4c96483aacda3818e04438503a92cd720834ad8 (diff) |
Try to unbreak TAILQ_FOREACH_REVERSE.
No tested, but now it should at least build.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/queue.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h index c61c76d946b..269af413c35 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.h,v 1.15 2000/04/15 00:20:13 deraadt Exp $ */ +/* $OpenBSD: queue.h,v 1.16 2000/09/07 19:47:59 art Exp $ */ /* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */ /* @@ -308,10 +308,10 @@ struct { \ (var) != TAILQ_END(head); \ (var) = TAILQ_NEXT(var, field)) -#define TAILQ_FOREACH_REVERSE(var, head, field) \ - for((var) = TAILQ_LAST(head); \ +#define TAILQ_FOREACH_REVERSE(var, head, field, headname) \ + for((var) = TAILQ_LAST(head, headname); \ (var) != TAILQ_END(head); \ - (var) = TAILQ_PREV(var, field)) + (var) = TAILQ_PREV(var, headname, field)) /* * Tail queue functions. |