From 77c4d1156f73444f4b1d897f423544869c880eae Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 3 Nov 2005 23:30:51 +0000 Subject: [PATCH] * sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask, make sure constant is long. --- ChangeLog | 3 ++- sunrpc/svc.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 90129ac276..7ece16c109 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ 2005-11-03 Roland McGrath [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 . 2005-11-03 Ulrich Drepper 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) -- 2.11.4.GIT