mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
[BZ #1548]
2005-11-03 Roland McGrath <roland@redhat.com> [BZ #1548] * sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask. From Jay Lan <jlan@engr.sgi.com>.
This commit is contained in:
parent
abab68592e
commit
87e3f68d1b
@ -372,7 +372,7 @@ svc_getreqset (fd_set *readfds)
|
||||
setsize = FD_SETSIZE;
|
||||
maskp = readfds->fds_bits;
|
||||
for (sock = 0; sock < setsize; sock += NFDBITS)
|
||||
for (mask = *maskp++; (bit = ffs (mask)); mask ^= (1 << (bit - 1)))
|
||||
for (mask = *maskp++; (bit = ffsl (mask)); mask ^= (1 << (bit - 1)))
|
||||
INTUSE(svc_getreq_common) (sock + bit - 1);
|
||||
}
|
||||
INTDEF (svc_getreqset)
|
||||
|
Loading…
Reference in New Issue
Block a user