From 3ad45a066264f8e8a819f05da4c2b79dfc549e73 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 25 Jul 2000 20:04:23 +0000 Subject: [PATCH] Clean up WSAENOTSOCK code (no functional change) --- servers/slapd/daemon.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 671648a5bd..74c7063dec 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -689,7 +689,7 @@ slapd_daemon_task( int ns; int at; ber_socket_t nfds; -#define SLAPD_EBADF_LIMIT 10 +#define SLAPD_EBADF_LIMIT 16 int ebadf = 0; #define SLAPD_IDLE_CHECK_LIMIT 4 @@ -783,8 +783,9 @@ slapd_daemon_task( int err = sock_errno(); if( err == EBADF -#ifdef HAVE_WINSOCK - || err == WSAENOTSOCK /* you'd think this would be EBADF */ +#ifdef WSAENOTSOCK + /* you'd think this would be EBADF */ + || err == WSAENOTSOCK #endif ) { if (++ebadf < SLAPD_EBADF_LIMIT) -- 2.39.5