Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Fix CIRCLEQ_FOREACH so that it actually works. I gu...



details:   https://anonhg.NetBSD.org/src/rev/d52ec0152a7d
branches:  trunk
changeset: 495340:d52ec0152a7d
user:      augustss <augustss%NetBSD.org@localhost>
date:      Wed Jul 26 12:19:40 2000 +0000

description:
Fix CIRCLEQ_FOREACH so that it actually works.  I guess noone has used this
macro either.

diffstat:

 sys/sys/queue.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ada413ba2426 -r d52ec0152a7d sys/sys/queue.h
--- a/sys/sys/queue.h   Wed Jul 26 12:04:44 2000 +0000
+++ b/sys/sys/queue.h   Wed Jul 26 12:19:40 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: queue.h,v 1.23 2000/07/26 11:01:01 augustss Exp $      */
+/*     $NetBSD: queue.h,v 1.24 2000/07/26 12:19:40 augustss Exp $      */
 
 /*
  * Copyright (c) 1991, 1993
@@ -440,7 +440,7 @@
 
 #define CIRCLEQ_FOREACH(var, head, field)                              \
        for ((var) = ((head)->cqh_first);                               \
-               (var);                                                  \
+               (var) != (void *)(head);                                \
                (var) = ((var)->field.cqe_next))
 
 #define CIRCLEQ_FOREACH_REVERSE(var, head, field)                      \



Home | Main Index | Thread Index | Old Index