From b1f70bd88e1320c8a578b5f576ae5e58efd3ee33 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 7 Sep 2000 19:48:00 +0000 Subject: Try to unbreak TAILQ_FOREACH_REVERSE. No tested, but now it should at least build. --- sys/sys/queue.h | 8 ++++---- 1 file 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. -- cgit v1.2.3