]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#3400, move ebadf declaration outside of while loop
authorHoward Chu <hyc@openldap.org>
Wed, 24 Nov 2004 05:29:21 +0000 (05:29 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 24 Nov 2004 05:29:21 +0000 (05:29 +0000)
servers/slapd/daemon.c

index 6a2e8e5c2a7353d7dc407f34aee8c542550488e8..626a336730fc9bd940ef0415ffbc824bbfc53285 100644 (file)
@@ -1170,6 +1170,7 @@ slapd_daemon_task(
        int l;
        time_t  last_idle_check = 0;
        struct timeval idle;
+       int ebadf = 0;
 
 #define SLAPD_IDLE_CHECK_LIMIT 4
 
@@ -1269,7 +1270,6 @@ slapd_daemon_task(
                int at;
                ber_socket_t nfds;
 #define SLAPD_EBADF_LIMIT 16
-               int ebadf = 0;
 
                time_t  now;