From: Pierangelo Masarati Date: Wed, 3 Jan 2007 21:34:49 +0000 (+0000) Subject: silence warnings X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~269 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3284f54ec0e6640c35efd19bd31cb7ab2bcddf17;p=openldap silence warnings --- 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 );