From 100634c920ca231287bc8d6f8feadf7f1f0a68fc Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 22 Jul 2005 13:18:28 +0000 Subject: [PATCH] Remove unused variables. --- servers/slapd/backover.c | 1 - servers/slapd/controls.c | 1 - servers/slapd/overlays/unique.c | 2 +- servers/slapd/root_dse.c | 7 ++++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/servers/slapd/backover.c b/servers/slapd/backover.c index b3c06b04f4..8260f29a6d 100644 --- a/servers/slapd/backover.c +++ b/servers/slapd/backover.c @@ -517,7 +517,6 @@ over_op_func( { slap_overinfo *oi; slap_overinst *on; - BI_op_bind **func; BackendDB *be = op->o_bd, db; slap_callback cb = {NULL, over_back_response, NULL, NULL}; int rc = SLAP_CB_CONTINUE; diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 9e3ef0fd0b..383b945e00 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -448,7 +448,6 @@ int slap_parse_ctrl( const char **text ) { struct slap_control *sc; - int rc; sc = find_ctrl( control->ldctl_oid ); if( sc != NULL ) { diff --git a/servers/slapd/overlays/unique.c b/servers/slapd/overlays/unique.c index 79e7db9403..3ea3741a99 100644 --- a/servers/slapd/overlays/unique.c +++ b/servers/slapd/overlays/unique.c @@ -506,7 +506,7 @@ static int unique_modrdn( Operation nop = *op; char *key, *kp; - int i, rc, ks = 16; /* a handful of extra bytes */ + int i, ks = 16; /* a handful of extra bytes */ LDAPRDN newrdn; struct berval bv[2]; diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index 50c326b10e..628ddea77c 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -52,7 +52,10 @@ root_dse_info( const char **text ) { Entry *e; - struct berval val, *bv; + struct berval val; +#ifdef LDAP_SLAPI + struct berval *bv; +#endif int i, j; char ** supportedSASLMechanisms; BackendDB *be; @@ -63,8 +66,10 @@ root_dse_info( = slap_schema.si_ad_objectClass; AttributeDescription *ad_namingContexts = slap_schema.si_ad_namingContexts; +#ifdef LDAP_SLAPI AttributeDescription *ad_supportedExtension = slap_schema.si_ad_supportedExtension; +#endif AttributeDescription *ad_supportedLDAPVersion = slap_schema.si_ad_supportedLDAPVersion; AttributeDescription *ad_supportedSASLMechanisms -- 2.39.5