From 1bae6d28e5d764ce52a2ba62838534420a0a3fa3 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 5 Apr 2003 16:58:36 +0000 Subject: [PATCH] silence warnings --- servers/slapd/back-ldap/config.c | 2 -- servers/slapd/back-ldap/delete.c | 1 - servers/slapd/back-ldap/modrdn.c | 1 - servers/slapd/back-meta/search.c | 3 ++- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/servers/slapd/back-ldap/config.c b/servers/slapd/back-ldap/config.c index 2f2186e52d..2c6d3ee554 100644 --- a/servers/slapd/back-ldap/config.c +++ b/servers/slapd/back-ldap/config.c @@ -429,8 +429,6 @@ ldap_back_exop_whoami( /* if auth'd by back-ldap and request is proxied, forward it */ if ( op->o_conn->c_authz_backend && !strcmp(op->o_conn->c_authz_backend->be_type, "ldap" ) && !dn_match(&op->o_ndn, &op->o_conn->c_ndn)) { - struct ldapinfo *li = - (struct ldapinfo *)op->o_conn->c_authz_backend->be_private; struct ldapconn *lc; LDAPControl c, *ctrls[2] = {&c, NULL}; diff --git a/servers/slapd/back-ldap/delete.c b/servers/slapd/back-ldap/delete.c index e6c635ce43..5b99c624bf 100644 --- a/servers/slapd/back-ldap/delete.c +++ b/servers/slapd/back-ldap/delete.c @@ -52,7 +52,6 @@ ldap_back_delete( { struct ldapinfo *li = (struct ldapinfo *) op->o_bd->be_private; struct ldapconn *lc; - int rc; ber_int_t msgid; struct berval mdn = { 0, NULL }; diff --git a/servers/slapd/back-ldap/modrdn.c b/servers/slapd/back-ldap/modrdn.c index 90cf289b37..54ec32430f 100644 --- a/servers/slapd/back-ldap/modrdn.c +++ b/servers/slapd/back-ldap/modrdn.c @@ -52,7 +52,6 @@ ldap_back_modrdn( { struct ldapinfo *li = (struct ldapinfo *) op->o_bd->be_private; struct ldapconn *lc; - int rc; ber_int_t msgid; struct berval mdn = { 0, NULL }, mnewSuperior = { 0, NULL }; diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index fe6e1151d0..60386ee4c9 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -103,7 +103,7 @@ meta_back_search( Operation *op, SlapReply *rs ) struct metasingleconn *lsc; struct timeval tv = { 0, 0 }; LDAPMessage *res, *e; - int count, rc = 0, *msgid, sres = LDAP_NO_SUCH_OBJECT; + int rc = 0, *msgid, sres = LDAP_NO_SUCH_OBJECT; char *match = NULL, *err = NULL; char *mmatch = NULL; BerVarray v2refs = NULL; @@ -361,6 +361,7 @@ meta_back_search( Operation *op, SlapReply *rs ) #if 0 if ( mapped_attrs == NULL && op->oq_search.rs_attrs) { + int count; for ( count = 0; op->oq_search.rs_attrs[ count ].an_name.bv_val; count++ ); mapped_attrs = ch_malloc( ( count + 1 ) * sizeof(char *)); for ( count = 0; op->oq_search.rs_attrs[ count ].an_name.bv_val; count++ ) { -- 2.39.5