Delete unused variables

This commit is contained in:
Hallvard Furuseth 2005-07-18 05:34:04 +00:00
parent f43a823c73
commit 8adef9eec8

View File

@ -1296,8 +1296,6 @@ config_cfdir(ConfigArgs *c) {
static int static int
config_search_base(ConfigArgs *c) { config_search_base(ConfigArgs *c) {
struct berval dn;
if(c->op == SLAP_CONFIG_EMIT) { if(c->op == SLAP_CONFIG_EMIT) {
int rc = 1; int rc = 1;
if (!BER_BVISEMPTY(&default_search_base)) { if (!BER_BVISEMPTY(&default_search_base)) {
@ -1551,7 +1549,6 @@ config_suffix(ConfigArgs *c)
{ {
Backend *tbe; Backend *tbe;
struct berval pdn, ndn; struct berval pdn, ndn;
int rc;
char *notallowed = NULL; char *notallowed = NULL;
if ( c->be == frontendDB ) { if ( c->be == frontendDB ) {
@ -3048,7 +3045,7 @@ config_add_internal( CfBackInfo *cfb, Entry *e, ConfigArgs *ca, SlapReply *rs, i
CfEntryInfo *ce, *last; CfEntryInfo *ce, *last;
ConfigOCs **colst; ConfigOCs **colst;
Attribute *a, *oc_at; Attribute *a, *oc_at;
int i, j, nocs, rc = 0; int i, nocs, rc = 0;
struct berval pdn; struct berval pdn;
ConfigTable *ct; ConfigTable *ct;
char *ptr; char *ptr;
@ -3236,7 +3233,6 @@ static int
config_back_add( Operation *op, SlapReply *rs ) config_back_add( Operation *op, SlapReply *rs )
{ {
CfBackInfo *cfb; CfBackInfo *cfb;
CfEntryInfo *ce, *last;
int renumber; int renumber;
ConfigArgs ca; ConfigArgs ca;
@ -3289,7 +3285,6 @@ static int
config_modify_internal( CfEntryInfo *ce, Operation *op, SlapReply *rs, config_modify_internal( CfEntryInfo *ce, Operation *op, SlapReply *rs,
ConfigArgs *ca ) ConfigArgs *ca )
{ {
CfBackInfo *cfb = (CfBackInfo *)op->o_bd->be_private;
int rc = LDAP_UNWILLING_TO_PERFORM; int rc = LDAP_UNWILLING_TO_PERFORM;
Modifications *ml; Modifications *ml;
Entry *e = ce->ce_entry; Entry *e = ce->ce_entry;
@ -3644,7 +3639,6 @@ config_back_search( Operation *op, SlapReply *rs )
{ {
CfBackInfo *cfb; CfBackInfo *cfb;
CfEntryInfo *ce, *last; CfEntryInfo *ce, *last;
int rc;
if ( !be_isroot( op ) ) { if ( !be_isroot( op ) ) {
rs->sr_err = LDAP_INSUFFICIENT_ACCESS; rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
@ -3879,12 +3873,11 @@ config_back_db_open( BackendDB *be )
CfBackInfo *cfb = be->be_private; CfBackInfo *cfb = be->be_private;
struct berval rdn; struct berval rdn;
Entry *e, *parent; Entry *e, *parent;
CfEntryInfo *ce, *ceparent, *ceprev; CfEntryInfo *ce, *ceparent;
int i, rc; int i;
BackendInfo *bi; BackendInfo *bi;
BackendDB *bptr; BackendDB *bptr;
ConfigArgs c; ConfigArgs c;
ConfigTable *ct;
Connection conn = {0}; Connection conn = {0};
char opbuf[OPERATION_BUFFER_SIZE]; char opbuf[OPERATION_BUFFER_SIZE];
Operation *op; Operation *op;