From 4122a9dd6acba5cc9358c6d0e9f272f2ebcc13e7 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 5 Apr 2004 20:24:18 +0000 Subject: [PATCH] Use SLAP_MONITOR(be) to check flag --- servers/slapd/back-monitor/database.c | 2 +- servers/slapd/root_dse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-monitor/database.c b/servers/slapd/back-monitor/database.c index 2ca220dc63..7191e5479b 100644 --- a/servers/slapd/back-monitor/database.c +++ b/servers/slapd/back-monitor/database.c @@ -126,7 +126,7 @@ monitor_subsys_database_init( return( -1 ); } - if ( be->be_flags & SLAP_BFLAG_MONITOR ) { + if ( SLAP_MONITOR(be) ) { attr_merge( e, slap_schema.si_ad_monitorContext, be->be_suffix, be->be_nsuffix ); attr_merge( e_database, slap_schema.si_ad_monitorContext, diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index d5ef3f54d4..8d8d34d697 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -124,7 +124,7 @@ root_dse_info( /* no suffix! */ continue; } - if ( backends[i].be_flags & SLAP_BFLAG_MONITOR ) { + if ( SLAP_MONITOR( backends[i].be_flags )) { vals[0] = backends[i].be_suffix[0]; nvals[0] = backends[i].be_nsuffix[0]; if( attr_merge( e, ad_monitorContext, vals, nvals ) ) { -- 2.39.5