]> git.sur5r.net Git - openldap/commitdiff
silence warning
authorPierangelo Masarati <ando@openldap.org>
Sun, 24 Dec 2006 15:43:01 +0000 (15:43 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 24 Dec 2006 15:43:01 +0000 (15:43 +0000)
servers/slapd/acl.c
servers/slapd/root_dse.c

index d523a5aa0e0107783a847b72dbbd0e9d30d1b135..0080a0c04ce7f851bd7da3e8f42da927d18f49bc 100644 (file)
@@ -1326,7 +1326,7 @@ slap_acl_mask(
                                                char            buf[] = "FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF";
                                                struct berval   ip;
                                                struct in6_addr addr;
-                                               int             port_number = -1, i;
+                                               int             port_number = -1;
                                                
                                                if ( strncasecmp( op->o_conn->c_peer_name.bv_val, 
                                                                        acl_bv_ipv6_eq.bv_val,
index 719dca66a4dfc48f6f0cd36d6ed99fcf9591648f..877414f80789e7aab65ca8aaf2ad6b83fa87de56 100644 (file)
@@ -486,8 +486,7 @@ slap_discover_feature(
        LDAP            *ld = NULL;
        LDAPMessage     *res = NULL, *entry;
        int             rc, i;
-       struct berval   cred = BER_BVC( "" ),
-                       bv_val,
+       struct berval   bv_val,
                        **values = NULL;
        char            *attrs[ 2 ] = { NULL, NULL };