diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-06-18 09:49:12 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-06-18 09:49:19 -0700 |
commit | 75c51c67b340548286efd41a53882e2acaf74ab5 (patch) | |
tree | 64819b635355465fb1b7f6b1b4b0dc44a7d7870a /os/connection.c | |
parent | 128cd03eecacc6d5c5903d59a11966dcf3697bf1 (diff) |
Clarify use of and need for mffs vs. ffs
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'os/connection.c')
-rw-r--r-- | os/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/connection.c b/os/connection.c index 0c72b67eb..3ff93bbb6 100644 --- a/os/connection.c +++ b/os/connection.c @@ -827,7 +827,7 @@ EstablishNewConnections(ClientPtr clientUnused, pointer closure) int status; #ifndef WIN32 - curconn = ffs (readyconnections.fds_bits[i]) - 1; + curconn = mffs (readyconnections.fds_bits[i]) - 1; readyconnections.fds_bits[i] &= ~((fd_mask)1 << curconn); curconn += (i * (sizeof(fd_mask)*8)); #else @@ -992,7 +992,7 @@ CheckConnections(void) mask = AllClients.fds_bits[i]; while (mask) { - curoff = ffs (mask) - 1; + curoff = mffs (mask) - 1; curclient = curoff + (i * (sizeof(fd_mask)*8)); FD_ZERO(&tmask); FD_SET(curclient, &tmask); |