From 4a57978a4b8694e77ec7aec587ef65fb424cf674 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 22 Jul 2005 13:21:10 +0000 Subject: [PATCH] '#if 0' out variables used only in #if 0. Fix '#if 0'-ed out counting loops. --- servers/slapd/back-ldap/config.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-ldap/config.c b/servers/slapd/back-ldap/config.c index e8a1b9f58a..c82239bad4 100644 --- a/servers/slapd/back-ldap/config.c +++ b/servers/slapd/back-ldap/config.c @@ -589,7 +589,9 @@ ldap_back_cf_gen( ConfigArgs *c ) switch( c->type ) { case LDAP_BACK_CFG_URI: { LDAPURLDesc *tmpludp; +#if 0 char **urllist; +#endif int urlrc, i; if ( c->argc != 2 ) { @@ -683,7 +685,7 @@ ldap_back_cf_gen( ConfigArgs *c ) tmpludp; i++, tmpludp = tmpludp->lud_next ) /* just count */ - + ; urllist = ch_calloc( sizeof( char * ), i + 1 ); for ( i = 0, tmpludp = li->lud; @@ -1170,7 +1172,9 @@ ldap_back_db_config( /* URI of server to query (obsoletes "server" directive) */ } else if ( strcasecmp( argv[0], "uri" ) == 0 ) { LDAPURLDesc *tmpludp; +#if 0 char **urllist; +#endif int urlrc, i; if ( argc != 2 ) { @@ -1262,7 +1266,7 @@ ldap_back_db_config( tmpludp; i++, tmpludp = tmpludp->lud_next ) /* just count */ - + ; urllist = ch_calloc( sizeof( char * ), i + 1 ); for ( i = 0, tmpludp = li->lud; -- 2.39.5