From: Hallvard Furuseth Date: Wed, 27 Jul 2005 08:52:32 +0000 (+0000) Subject: Silence unused variable warnings X-Git-Tag: OPENLDAP_AC_BP~181 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a6eabb69d16776acf8223b2b8303920b98279b5;p=openldap Silence unused variable warnings --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index e6ac232628..a6f0a853d0 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -3455,8 +3455,8 @@ slap_dynacl_get( const char *name ) int acl_init( void ) { - int i, rc; #ifdef SLAP_DYNACL + int i, rc; slap_dynacl_t *known_dynacl[] = { #ifdef SLAPD_ACI_ENABLED &dynacl_aci, diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 0c23e4b417..8ae40a4ecb 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -79,7 +79,9 @@ static int replicationInterval; static char *passwd_salt; static char *logfileName; +#ifdef SLAP_AUTH_REWRITE static BerVarray authz_rewrites; +#endif static struct berval cfdir;