mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-10 17:03:09 -05:00
put conditions on i, buf2 and c so we don't get unreferenced variable warnings
This commit is contained in:
parent
af423fd393
commit
8656d441ff
1 changed files with 7 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue