From: Gary Williams Date: Wed, 14 Apr 1999 15:13:10 +0000 (+0000) Subject: put conditions on i, buf2 and c so we don't get unreferenced variable warnings X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~175 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8656d441ff9eb15a964670c3552c653e8d746ad6;p=openldap put conditions on i, buf2 and c so we don't get unreferenced variable warnings --- diff --git a/servers/slapd/monitor.c b/servers/slapd/monitor.c index 658db39791..9c5d583587 100644 --- a/servers/slapd/monitor.c +++ b/servers/slapd/monitor.c @@ -27,14 +27,18 @@ void monitor_info( Connection *conn, Operation *op ) { Entry *e; - char buf[BUFSIZ], buf2[22]; + char buf[BUFSIZ]; struct berval val; struct berval *vals[2]; - int i, nconns, nwritewaiters, nreadwaiters; + int nconns, nwritewaiters, nreadwaiters; struct tm *ltm; char *p; +#ifdef LDAP_COUNTERS + int i; + char buf2[22] Connection *c; - time_t currenttime; +#endif + time_t currenttime; vals[0] = &val; vals[1] = NULL;