From d16754c81b4403e715df99f17aa7316409cf08f2 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 11 Jan 2007 12:04:22 +0000 Subject: [PATCH] Delete unused variables. --- libraries/libldap/abandon.c | 1 - servers/slapd/back-bdb/tools.c | 3 +-- servers/slapd/backglue.c | 1 - servers/slapd/bconfig.c | 1 - servers/slapd/overlays/constraint.c | 1 - servers/slapd/overlays/dds.c | 1 - servers/slapd/overlays/refint.c | 2 +- servers/slapd/overlays/translucent.c | 1 - 8 files changed, 2 insertions(+), 9 deletions(-) diff --git a/libraries/libldap/abandon.c b/libraries/libldap/abandon.c index 9ab023fa4f..43e2f342c8 100644 --- a/libraries/libldap/abandon.c +++ b/libraries/libldap/abandon.c @@ -346,7 +346,6 @@ ldap_int_bisect_find( ber_int_t *v, ber_len_t n, ber_int_t id, int *idxp ) { int begin, end, - i, rc = 0; assert( n >= 0 ); diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index 5303e271ff..475f4acc09 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -262,9 +262,8 @@ int bdb_tool_id2entry_get( Entry* bdb_tool_entry_get( BackendDB *be, ID id ) { - int rc, off; + int rc; Entry *e = NULL; - char *dptr; assert( be != NULL ); assert( slapMode & SLAP_TOOL_MODE ); diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index df00f4f584..6028b90a7a 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -219,7 +219,6 @@ glue_op_func ( Operation *op, SlapReply *rs ) static int glue_response ( Operation *op, SlapReply *rs ) { - slap_overinst *on = (slap_overinst *)op->o_bd->bd_info; BackendDB *be = op->o_bd; be = glue_back_select (op->o_bd, &op->o_req_ndn); diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 9f4f1c936c..af32d5a597 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -5178,7 +5178,6 @@ config_check_schema(CfBackInfo *cfb) { struct berval schema_dn = BER_BVC(SCHEMA_RDN "," CONFIG_RDN); ConfigArgs c = {0}; - ConfigFile *cf = cfb->cb_config; CfEntryInfo *ce, *last; Entry *e; diff --git a/servers/slapd/overlays/constraint.c b/servers/slapd/overlays/constraint.c index feddb7a395..c86c11a53a 100644 --- a/servers/slapd/overlays/constraint.c +++ b/servers/slapd/overlays/constraint.c @@ -87,7 +87,6 @@ constraint_cf_gen( ConfigArgs *c ) struct berval bv; int i, rc = 0; constraint ap = { NULL, NULL, NULL }, *a2 = NULL; - regmatch_t rm[2]; const char *text = NULL; switch ( c->op ) { diff --git a/servers/slapd/overlays/dds.c b/servers/slapd/overlays/dds.c index 8ed98c6577..7ce339e8d8 100644 --- a/servers/slapd/overlays/dds.c +++ b/servers/slapd/overlays/dds.c @@ -1837,7 +1837,6 @@ dds_initialize() { int rc = 0; int i, code; - const char *err; /* Make sure we don't exceed the bits reserved for userland */ config_check_userland( DDS_LAST ); diff --git a/servers/slapd/overlays/refint.c b/servers/slapd/overlays/refint.c index 207b22bde6..0a6d093775 100644 --- a/servers/slapd/overlays/refint.c +++ b/servers/slapd/overlays/refint.c @@ -645,7 +645,7 @@ refint_response( slap_overinst *on = (slap_overinst *) op->o_bd->bd_info; refint_data *id = on->on_bi.bi_private; BerValue pdn; - int rc, ac; + int ac; refint_q *rq; BackendDB *db; refint_attrs *ip; diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index adfe151141..ee9bf9ebe4 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -689,7 +689,6 @@ static int translucent_db_config( static int translucent_db_init(BackendDB *be) { slap_overinst *on = (slap_overinst *) be->bd_info; translucent_info *ov; - int rc; Debug(LDAP_DEBUG_TRACE, "==> translucent_db_init\n", 0, 0, 0); -- 2.39.5