From: Pierangelo Masarati Date: Sun, 24 Dec 2006 15:43:01 +0000 (+0000) Subject: silence warning X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~313 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=186d30288d57d3ee4c13c24d9930f69c8b6cc3e6;p=openldap silence warning --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index d523a5aa0e..0080a0c04c 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -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, diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index 719dca66a4..877414f807 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -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 };