From: Howard Chu Date: Wed, 24 Nov 2004 05:29:21 +0000 (+0000) Subject: Fix ITS#3400, move ebadf declaration outside of while loop X-Git-Tag: OPENLDAP_REL_ENG_2_2_19~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e565d3b123a93f2016cbf081eda1d9ae5a917272;p=openldap Fix ITS#3400, move ebadf declaration outside of while loop --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 6a2e8e5c2a..626a336730 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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;