* sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask,

make sure constant is long.
This commit is contained in:
Roland McGrath 2005-11-03 23:30:51 +00:00
parent b81920fea7
commit 77c4d1156f
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,8 @@
2005-11-03 Roland McGrath <roland@redhat.com>
[BZ #1548]
* sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask.
* sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask,
make sure constant is long.
From Jay Lan <jlan@engr.sgi.com>.
2005-11-03 Ulrich Drepper <drepper@redhat.com>

View file

@ -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 = ffsl (mask)); mask ^= (1 << (bit - 1)))
for (mask = *maskp++; (bit = ffsl (mask)); mask ^= (1L << (bit - 1)))
INTUSE(svc_getreq_common) (sock + bit - 1);
}
INTDEF (svc_getreqset)