Delete unused variables.

This commit is contained in:
Hallvard Furuseth 2007-01-11 12:04:22 +00:00
parent a8eacbb355
commit d16754c81b
8 changed files with 2 additions and 9 deletions

View file

@ -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 );

View file

@ -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 );

View file

@ -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);

View file

@ -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;

View file

@ -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 ) {

View file

@ -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 );

View file

@ -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;

View file

@ -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);