From 3284f54ec0e6640c35efd19bd31cb7ab2bcddf17 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 3 Jan 2007 21:34:49 +0000 Subject: [PATCH] silence warnings --- servers/slapd/back-ldap/config.c | 4 ++-- servers/slapd/back-ldap/init.c | 4 +--- servers/slapd/back-meta/init.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/servers/slapd/back-ldap/config.c b/servers/slapd/back-ldap/config.c index 9a50b0f29f..a67464fbc3 100644 --- a/servers/slapd/back-ldap/config.c +++ b/servers/slapd/back-ldap/config.c @@ -1622,7 +1622,7 @@ done_url:; && mask == LDAP_BACK_F_T_F_DISCOVER && !LDAP_BACK_T_F( li ) ) { - slap_bindconf sb = { 0 }; + slap_bindconf sb = { BER_BVNULL }; int rc; if ( li->li_uri == NULL ) { @@ -1794,7 +1794,7 @@ done_url:; && mask == LDAP_BACK_F_CANCEL_EXOP_DISCOVER && !LDAP_BACK_CANCEL( li ) ) { - slap_bindconf sb = { 0 }; + slap_bindconf sb = { BER_BVNULL }; int rc; if ( li->li_uri == NULL ) { diff --git a/servers/slapd/back-ldap/init.c b/servers/slapd/back-ldap/init.c index e838b03b37..d9a4ff61c4 100644 --- a/servers/slapd/back-ldap/init.c +++ b/servers/slapd/back-ldap/init.c @@ -172,7 +172,7 @@ ldap_back_db_open( BackendDB *be ) { ldapinfo_t *li = (ldapinfo_t *)be->be_private; - slap_bindconf sb = { 0 }; + slap_bindconf sb = { BER_BVNULL }; int rc = 0; Debug( LDAP_DEBUG_TRACE, @@ -198,8 +198,6 @@ ldap_back_db_open( BackendDB *be ) BER_BVSTR( &sb.sb_binddn, "" ); if ( LDAP_BACK_T_F_DISCOVER( li ) && !LDAP_BACK_T_F( li ) ) { - int rc; - rc = slap_discover_feature( &sb, slap_schema.si_ad_supportedFeatures->ad_cname.bv_val, LDAP_FEATURE_ABSOLUTE_FILTERS ); diff --git a/servers/slapd/back-meta/init.c b/servers/slapd/back-meta/init.c index 9d7abb0efd..9bfeb4fe2d 100644 --- a/servers/slapd/back-meta/init.c +++ b/servers/slapd/back-meta/init.c @@ -137,7 +137,7 @@ meta_back_db_open( rc; for ( i = 0; i < mi->mi_ntargets; i++ ) { - slap_bindconf sb = { 0 }; + slap_bindconf sb = { BER_BVNULL }; metatarget_t *mt = mi->mi_targets[ i ]; ber_str2bv( mt->mt_uri, 0, 0, &sb.sb_uri ); -- 2.39.5