]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove unused rbtnode->rpz flag
authorTony Finch <fanf@isc.org>
Fri, 1 Apr 2022 17:22:13 +0000 (18:22 +0100)
committerTony Finch <fanf@isc.org>
Mon, 2 May 2022 18:47:58 +0000 (19:47 +0100)
The rbtnode->rpz flag was left behind when rbt and rpz were disentangled
by CHANGES #4576. Removing it makes the comment above correct again.

This reduces the flags so they fit in a 32 bit word again. On 64
bit systems there is still padding so it doesn't change the size
of an rbtnode. On 32 bit systems it reduces an rbtnode by 4 bytes.

lib/dns/include/dns/rbt.h
lib/dns/rbt.c

index f0235141b524961f470bad1ef54d98c1170b8deb..c75ed4850f4da64066fd0e1606c6a757daf4c64b 100644 (file)
@@ -97,12 +97,9 @@ struct dns_rbtnode {
        unsigned int namelen       : 8; /*%< range is 1..255 */
        unsigned int offsetlen     : 8; /*%< range is 1..128 */
        unsigned int oldnamelen    : 8; /*%< range is 1..255 */
+       unsigned int               : 0; /* end of bitfields c/o tree lock */
        /*@}*/
 
-       /* node needs to be cleaned from rpz */
-       unsigned int rpz : 1;
-       unsigned int     : 0; /* end of bitfields c/o tree lock */
-
        /*%
         * These are needed for hashing. The 'uppernode' points to the
         * node's superdomain node in the parent subtree, so that it can
index d2cec5a935b6d87dbd64cabddf6a5b759b1be64e..77ab08b14eadcb5923a6ef905ceafd0f83a81270 100644 (file)
@@ -1513,7 +1513,6 @@ create_node(isc_mem_t *mctx, const dns_name_t *name, dns_rbtnode_t **nodep) {
        node->left = NULL;
        node->down = NULL;
        node->data = NULL;
-       node->rpz = 0;
 
        node->hashnext = NULL;
        node->hashval = 0;