Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/bind/dist/lib/dns/include/dns these can never b...



details:   https://anonhg.NetBSD.org/src/rev/d80181fa7333
branches:  trunk
changeset: 791059:d80181fa7333
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 02 17:11:39 2013 +0000

description:
these can never be null.

diffstat:

 external/bsd/bind/dist/lib/dns/include/dns/rbt.h |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (27 lines):

diff -r 5e25a6f2f350 -r d80181fa7333 external/bsd/bind/dist/lib/dns/include/dns/rbt.h
--- a/external/bsd/bind/dist/lib/dns/include/dns/rbt.h  Sat Nov 02 13:59:14 2013 +0000
+++ b/external/bsd/bind/dist/lib/dns/include/dns/rbt.h  Sat Nov 02 17:11:39 2013 +0000
@@ -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 @@
        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 */
 



Home | Main Index | Thread Index | Old Index