From 87e3f68d1b13ec448210553672e45a5c21b1ca3e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 3 Nov 2005 21:39:36 +0000 Subject: [BZ #1548] 2005-11-03 Roland McGrath [BZ #1548] * sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask. From Jay Lan . --- sunrpc/svc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sunrpc/svc.c') 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) -- cgit 1.4.1