summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--os/waitfor.c2
1 files changed, 1 insertions, 1 deletions
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)];