From 186d30288d57d3ee4c13c24d9930f69c8b6cc3e6 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 24 Dec 2006 15:43:01 +0000 Subject: [PATCH] silence warning --- servers/slapd/acl.c | 2 +- servers/slapd/root_dse.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 }; -- 2.39.5