| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: rbt.h,v 1.8 2014/03/01 03:24:37 christos Exp $ */ | | 1 | /* $NetBSD: rbt.h,v 1.9 2014/03/01 12:12:57 dsl Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (C) 2004-2009, 2012-2014 Internet Systems Consortium, Inc. ("ISC") | | 4 | * Copyright (C) 2004-2009, 2012-2014 Internet Systems Consortium, Inc. ("ISC") |
5 | * Copyright (C) 1999-2002 Internet Software Consortium. | | 5 | * Copyright (C) 1999-2002 Internet Software Consortium. |
6 | * | | 6 | * |
7 | * Permission to use, copy, modify, and/or distribute this software for any | | 7 | * Permission to use, copy, modify, and/or distribute this software for any |
8 | * purpose with or without fee is hereby granted, provided that the above | | 8 | * purpose with or without fee is hereby granted, provided that the above |
9 | * copyright notice and this permission notice appear in all copies. | | 9 | * copyright notice and this permission notice appear in all copies. |
10 | * | | 10 | * |
11 | * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH | | 11 | * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH |
12 | * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | | 12 | * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
13 | * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, | | 13 | * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, |
14 | * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | | 14 | * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| @@ -1025,18 +1025,19 @@ dns_rbtnode_refdecrement(dns_rbtnode_t * | | | @@ -1025,18 +1025,19 @@ dns_rbtnode_refdecrement(dns_rbtnode_t * |
1025 | do { \ | | 1025 | do { \ |
1026 | REQUIRE((node)->references > 0); \ | | 1026 | REQUIRE((node)->references > 0); \ |
1027 | (node)->references++; \ | | 1027 | (node)->references++; \ |
1028 | if ((refs) != NULL) \ | | 1028 | if ((refs) != NULL) \ |
1029 | (*refs) = (node)->references; \ | | 1029 | (*refs) = (node)->references; \ |
1030 | } while (/*CONSTCOND*/0) | | 1030 | } while (/*CONSTCOND*/0) |
1031 | #define dns_rbtnode_refdecrement(node, refs) \ | | 1031 | #define dns_rbtnode_refdecrement(node, refs) \ |
1032 | do { \ | | 1032 | do { \ |
1033 | REQUIRE((node)->references > 0); \ | | 1033 | REQUIRE((node)->references > 0); \ |
1034 | (node)->references--; \ | | 1034 | (node)->references--; \ |
1035 | if ((refs) != NULL) \ | | 1035 | if ((refs) != NULL) \ |
1036 | (*refs) = (node)->references; \ | | 1036 | (*refs) = (node)->references; \ |
1037 | } while (/*CONSTCOND*/0) | | 1037 | } while (/*CONSTCOND*/0) |
| | | 1038 | #endif |
1038 | #endif /* DNS_RBT_USEISCREFCOUNT */ | | 1039 | #endif /* DNS_RBT_USEISCREFCOUNT */ |
1039 | | | 1040 | |
1040 | ISC_LANG_ENDDECLS | | 1041 | ISC_LANG_ENDDECLS |
1041 | | | 1042 | |
1042 | #endif /* DNS_RBT_H */ | | 1043 | #endif /* DNS_RBT_H */ |