these can never be null.
This commit is contained in:
parent
549d91253b
commit
bdf9816273
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rbt.h,v 1.6 2012/06/05 00:41:51 christos Exp $ */
|
||||
/* $NetBSD: rbt.h,v 1.7 2013/11/02 17:11:39 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
|
||||
@ -927,15 +927,13 @@ dns_rbtnodechain_nextflat(dns_rbtnodechain_t *chain, dns_name_t *name);
|
||||
do { \
|
||||
REQUIRE((node)->references > 0); \
|
||||
(node)->references++; \
|
||||
if ((refs) != NULL) \
|
||||
(*refs) = (node)->references; \
|
||||
(*refs) = (node)->references; \
|
||||
} while (/*CONSTCOND*/0)
|
||||
#define dns_rbtnode_refdecrement(node, refs) \
|
||||
do { \
|
||||
REQUIRE((node)->references > 0); \
|
||||
(node)->references--; \
|
||||
if ((refs) != NULL) \
|
||||
(*refs) = (node)->references; \
|
||||
(*refs) = (node)->references; \
|
||||
} while (/*CONSTCOND*/0)
|
||||
#endif /* DNS_RBT_USEISCREFCOUNT */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user