From 9a0bb78af724a0819bec2c6f6bd005a863df624e Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Thu, 16 Sep 2004 13:04:23 +0000 Subject: use FD_SETSIZE instead of XFD_SETSIZE since the sice of fd_set depends on the first --- os/waitfor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/waitfor.c b/os/waitfor.c index 09e30c8..1c3ebef 100644 --- a/os/waitfor.c +++ b/os/waitfor.c @@ -196,7 +196,7 @@ WaitForSomething(int *pClientsReady) if (current_time) /* may not have been set */ current_time = GetTimeInMillis(); - for (i = 0; i < howmany(XFD_SETSIZE, NFDBITS); i++) { + for (i = 0; i < howmany(FD_SETSIZE, NFDBITS); i++) { while (clientsReadable.fds_bits[i]) { curclient = ffs(clientsReadable.fds_bits[i]) - 1; conn = ConnectionTranslation[curclient + (i << 5)]; -- cgit v1.2.3