]> git.sur5r.net Git - openldap/commitdiff
silence warnings
authorPierangelo Masarati <ando@openldap.org>
Wed, 3 Jan 2007 21:34:49 +0000 (21:34 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 3 Jan 2007 21:34:49 +0000 (21:34 +0000)
servers/slapd/back-ldap/config.c
servers/slapd/back-ldap/init.c
servers/slapd/back-meta/init.c

index 9a50b0f29f83f96ce9c13cb0ca48dcd33bc2b69d..a67464fbc32eb0cbebcd08725ae17ac37beaf581 100644 (file)
@@ -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 ) {
index e838b03b374db2d344de7f25aedb33fd5c22c5be..d9a4ff61c4250aca3d77f24a1a85a48c428c4e5a 100644 (file)
@@ -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 );
index 9d7abb0efd930ba8d48a9234da3fd165adf211c5..9bfeb4fe2de75717577cab60e5f97969e44f00b7 100644 (file)
@@ -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 );