]> git.sur5r.net Git - openldap/commitdiff
Clean up WSAENOTSOCK code (no functional change)
authorKurt Zeilenga <kurt@openldap.org>
Tue, 25 Jul 2000 20:04:23 +0000 (20:04 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 25 Jul 2000 20:04:23 +0000 (20:04 +0000)
servers/slapd/daemon.c

index 671648a5bd195a555640496efe8d8e71ec0f19f9..74c7063dec0a0c2a53e8dbdd08364c1a1ae81b03 100644 (file)
@@ -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)