Source-Changes-HG archive

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

[src/trunk]: src/sys/sys rbtree(3): Fix RBDEBUG build with RB_TREE_INITIALIZER.



details:   https://anonhg.NetBSD.org/src/rev/19bf90080caa
branches:  trunk
changeset: 377603:19bf90080caa
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 18 11:46:47 2023 +0000

description:
rbtree(3): Fix RBDEBUG build with RB_TREE_INITIALIZER.

XXX pullup-10

diffstat:

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

diffs (18 lines):

diff -r e5abcb454b38 -r 19bf90080caa sys/sys/rbtree.h
--- a/sys/sys/rbtree.h  Tue Jul 18 11:44:32 2023 +0000
+++ b/sys/sys/rbtree.h  Tue Jul 18 11:46:47 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rbtree.h,v 1.6 2023/07/18 11:43:21 riastradh Exp $     */
+/*     $NetBSD: rbtree.h,v 1.7 2023/07/18 11:46:47 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -127,7 +127,7 @@ TAILQ_HEAD(rb_node_qh, rb_node);
 #define        RB_TAILQ_INSERT_AFTER(a, b, c, d)       TAILQ_INSERT_AFTER(a, b, c, d)
 
 #define        RBDEBUG_TREE_INITIALIZER(t)                                           \
-       .rbt_nodes = TAILQ_INITIALIZER((t).rbt_nodes),
+       .rbt_nodes = TAILQ_HEAD_INITIALIZER((t).rbt_nodes),
 #else
 #define        RB_TAILQ_REMOVE(a, b, c)                do { } while (/*CONSTCOND*/0)
 #define        RB_TAILQ_INIT(a)                        do { } while (/*CONSTCOND*/0)



Home | Main Index | Thread Index | Old Index