]> git.sur5r.net Git - openldap/commitdiff
Silence warnings
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 3 Sep 2005 17:03:36 +0000 (17:03 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 3 Sep 2005 17:03:36 +0000 (17:03 +0000)
servers/slapd/backglue.c
servers/slapd/daemon.c

index 936d617fdef43541c1bcc3b284e8e9f1a4c0a6cd..8d719ab1e3f7d03705cc82a210300813d9be878b 100644 (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;
index 814024df74e49cb9f6ec1139ce498090e9c5fc9e..e161af4513b2f52638096d90708c8f621ad6df90 100644 (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;