X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/a0865d6380e4ae001b2f00dbe4199477660b93d4..c29bb6474e693870dcd24352d6f5c9049a3210d8:/rpc.subproj/svc.c diff --git a/rpc.subproj/svc.c b/rpc.subproj/svc.c index a559c03..b0a6a9a 100644 --- a/rpc.subproj/svc.c +++ b/rpc.subproj/svc.c @@ -53,7 +53,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)svc.c 1.44 88/02/08 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)svc.c 2.4 88/08/11 4.0 RPCSRC";*/ -static char *rcsid = "$Id: svc.c,v 1.3 2001/08/23 01:25:01 ajn Exp $"; +static char *rcsid = "$Id: svc.c,v 1.4 2002/02/19 20:36:24 epeyton Exp $"; #endif /* @@ -66,6 +66,8 @@ static char *rcsid = "$Id: svc.c,v 1.3 2001/08/23 01:25:01 ajn Exp $"; * Copyright (C) 1984, Sun Microsystems, Inc. */ +#include +#include #include #include #include @@ -412,7 +414,7 @@ svc_getreqset(readfds) maskp = (u_long *)readfds->fds_bits; for (sock = 0; sock <= svc_maxfd; sock += NFDBITS) { - for (mask = *maskp++; bit = ffs(mask); mask ^= (1 << (bit - 1))) { + for (mask = *maskp++; (bit = ffs(mask)); mask ^= (1 << (bit - 1))) { if ((sock + bit) > (svc_maxfd + 1)) /* if we're past our sockets */ return;