From: Hallvard Furuseth Date: Sat, 3 Sep 2005 17:03:36 +0000 (+0000) Subject: Silence warnings X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~497 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=00d898e7f366ca0c7092fb8ace99635f990f0f10;p=openldap Silence warnings --- 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;