Silence warnings

This commit is contained in:
Hallvard Furuseth 2005-09-03 17:03:36 +00:00
parent 36db408d0e
commit 00d898e7f3
2 changed files with 6 additions and 3 deletions

View file

@ -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;

View file

@ -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;