Commit 5007a321 authored by Michael Graff's avatar Michael Graff
Browse files

use unsigned int for bitfields, not isc_boolean_t

parent 7ce10e3d
......@@ -64,13 +64,13 @@ typedef struct dns_rbtnode {
* In each case below the "range" indicated is what's _necessary_ for
* the bitfield to hold, not what it actually _can_ hold.
*/
isc_boolean_t is_root:1; /* range is 0..1 */
unsigned int color:1; /* range is 0..1 */
unsigned int find_callback:1; /* range is 0..1 */
unsigned int attributes:4; /* range is 0..2 */
unsigned int namelen:8; /* range is 1..255 */
unsigned int offsetlen:8; /* range is 1..128 */
unsigned int padbytes:9; /* range is 0..380 */
unsigned int is_root : 1; /* range is 0..1 */
unsigned int color : 1; /* range is 0..1 */
unsigned int find_callback : 1; /* range is 0..1 */
unsigned int attributes : 4; /* range is 0..2 */
unsigned int namelen : 8; /* range is 1..255 */
unsigned int offsetlen : 8; /* range is 1..128 */
unsigned int padbytes : 9; /* range is 0..380 */
/*
* These values are used in the RBT DB implementation. The appropriate
* node lock must be held before accessing them.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment