From 155387428a3ea3b1d3c7d22617385e23f16da0a8 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 23 Nov 2004 14:12:13 +0000 Subject: [PATCH] Add comment for spare bits in ctrlflags --- servers/slapd/slap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 29a4ee57d3..464e7c637a 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -2228,6 +2228,8 @@ typedef struct slap_op { #define SLAP_CONTROL_NONCRITICAL 2 #define SLAP_CONTROL_CRITICAL 3 #define SLAP_CONTROL_MASK 3 + +/* spare bits for simple flags */ #define SLAP_CONTROL_DATA0 0x10 #define SLAP_CONTROL_DATA1 0x20 #define SLAP_CONTROL_DATA2 0x40 @@ -2250,7 +2252,7 @@ typedef struct slap_op { #define o_subentries_visibility o_ctrlflag[slap_cids.sc_subentries] #define set_subentries_visibility(op) ((op)->o_subentries |= SLAP_CONTROL_DATA0) -#define get_subentries_visibility(op) ((op)->o_subentries & SLAP_CONTROL_DATA0) +#define get_subentries_visibility(op) (((op)->o_subentries & SLAP_CONTROL_DATA0) != 0) #define o_assert o_ctrlflag[slap_cids.sc_assert] #define get_assert(op) ((int)(op)->o_assert) -- 2.39.5