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

index 0b9e40871612e82cea45f2a0cb09ff40f583198e..b4755a80b2d6ce2e002ccb90c4ace6d34982eedc 100644 (file)
@@ -1480,6 +1480,7 @@ slapd_daemon_task(
        int l;
        time_t  last_idle_check = 0;
        struct timeval idle;
+       int ebadf = 0;
 
 #define SLAPD_IDLE_CHECK_LIMIT 4
 
@@ -1570,7 +1571,6 @@ slapd_daemon_task(
                int at;
                ber_socket_t nfds, nrfds, nwfds;
 #define SLAPD_EBADF_LIMIT 16
-               int ebadf = 0;
 
                time_t  now;