From: Howard Chu Date: Tue, 23 Nov 2004 14:12:13 +0000 (+0000) Subject: Add comment for spare bits in ctrlflags X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~245 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=155387428a3ea3b1d3c7d22617385e23f16da0a8;p=openldap Add comment for spare bits in ctrlflags --- 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)