From 00d898e7f366ca0c7092fb8ace99635f990f0f10 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sat, 3 Sep 2005 17:03:36 +0000 Subject: [PATCH] Silence warnings --- servers/slapd/backglue.c | 4 ++-- servers/slapd/daemon.c | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index 936d617fde..8d719ab1e3 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -779,7 +779,7 @@ glue_sub_del( BackendDB *b0 ) /* Find the top backend for this subordinate */ be = b0; - while ( be=LDAP_STAILQ_NEXT( be, be_next )) { + while ( (be=LDAP_STAILQ_NEXT( be, be_next )) != NULL ) { slap_overinfo *oi; slap_overinst *on; glueinfo *gi; @@ -840,7 +840,7 @@ glue_sub_attach() /* Find the top backend for this subordinate */ be = ga->ga_be; - while ( be=LDAP_STAILQ_NEXT( be, be_next )) { + while ( (be=LDAP_STAILQ_NEXT( be, be_next )) != NULL ) { slap_overinfo *oi; slap_overinst *on; glueinfo *gi; diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 814024df74..e161af4513 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1572,7 +1572,10 @@ slapd_daemon_task( ber_socket_t i; int ns, nwriters; int at; - ber_socket_t nfds, nrfds, nwfds; + ber_socket_t nfds; +#if SLAP_EVENTS_ARE_INDEXED + ber_socket_t nrfds, nwfds; +#endif #define SLAPD_EBADF_LIMIT 16 time_t now; -- 2.39.5