diff options
author | Roland McGrath <roland@gnu.org> | 2005-11-03 23:30:51 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2005-11-03 23:30:51 +0000 |
commit | 77c4d1156f73444f4b1d897f423544869c880eae (patch) | |
tree | 6c5469e4fd0d61927530364835424b6d8002b127 /sunrpc | |
parent | b81920fea759c7b7ce1bb01ff926d4fd7679f79a (diff) | |
download | glibc-77c4d1156f73444f4b1d897f423544869c880eae.tar.gz glibc-77c4d1156f73444f4b1d897f423544869c880eae.tar.xz glibc-77c4d1156f73444f4b1d897f423544869c880eae.zip |
* sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask,
make sure constant is long.
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/svc.c b/sunrpc/svc.c index 4e8395945f..53f628e699 100644 --- a/sunrpc/svc.c +++ b/sunrpc/svc.c @@ -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) |