summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-06 17:08:38 +0100
committerPeter S. Mazinger <ps.m@gmx.net>2011-03-06 17:08:38 +0100
commitcda3f2658389330999ad35390ed2676a7dc37325 (patch)
tree56089e5093f6334777fbff177215d1ebc1f02001 /libc/inet
parent1f08001dd7c51ce09b39310604e4baa5a973629c (diff)
simplify ffs* code
Remove __libc_ffs*, unneeded Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/rpc/svc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/inet/rpc/svc.c b/libc/inet/rpc/svc.c
index 03b406200..b28485de3 100644
--- a/libc/inet/rpc/svc.c
+++ b/libc/inet/rpc/svc.c
@@ -41,6 +41,7 @@
#include <errno.h>
#include <unistd.h>
+#include <string.h>
#include "rpc_private.h"
#include <rpc/svc.h>
#include <rpc/pmap_clnt.h>
@@ -452,7 +453,7 @@ svc_getreqset (fd_set *readfds)
setsize = _rpc_dtablesize ();
maskp = (u_int32_t *) readfds->fds_bits;
for (sock = 0; sock < setsize; sock += 32)
- for (mask = *maskp++; (bit = __libc_ffs (mask)); mask ^= (1 << (bit - 1)))
+ for (mask = *maskp++; (bit = ffs (mask)); mask ^= (1 << (bit - 1)))
svc_getreq_common (sock + bit - 1);
}
libc_hidden_def(svc_getreqset)