about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-11-03 21:39:36 +0000
committerRoland McGrath <roland@gnu.org>2005-11-03 21:39:36 +0000
commit87e3f68d1b13ec448210553672e45a5c21b1ca3e (patch)
tree7147fe0a4cf5a7dc6a8510c05c41ad4956ab106d
parentabab68592e2ef3fedc7328637d749ce0efe04682 (diff)
downloadglibc-87e3f68d1b13ec448210553672e45a5c21b1ca3e.tar.gz
glibc-87e3f68d1b13ec448210553672e45a5c21b1ca3e.tar.xz
glibc-87e3f68d1b13ec448210553672e45a5c21b1ca3e.zip
[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>.
-rw-r--r--sunrpc/svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/svc.c b/sunrpc/svc.c
index 6caf8412d5..4e8395945f 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 = 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)