Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/rpc svc_getreq[set]: use unsigned when assigning to...
details: https://anonhg.NetBSD.org/src/rev/3d8f5f6d99cb
branches: trunk
changeset: 756191:3d8f5f6d99cb
user: rmind <rmind%NetBSD.org@localhost>
date: Thu Jul 08 14:45:08 2010 +0000
description:
svc_getreq[set]: use unsigned when assigning to fds_bits.
XXX: This code should not invade fd_set internals at all.
diffstat:
lib/libc/rpc/svc.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r c2214b9bfc06 -r 3d8f5f6d99cb lib/libc/rpc/svc.c
--- a/lib/libc/rpc/svc.c Thu Jul 08 14:19:53 2010 +0000
+++ b/lib/libc/rpc/svc.c Thu Jul 08 14:45:08 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svc.c,v 1.28 2008/04/25 17:44:44 christos Exp $ */
+/* $NetBSD: svc.c,v 1.29 2010/07/08 14:45:08 rmind Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
static char *sccsid = "@(#)svc.c 1.44 88/02/08 Copyr 1984 Sun Micro";
static char *sccsid = "@(#)svc.c 2.4 88/08/11 4.0 RPCSRC";
#else
-__RCSID("$NetBSD: svc.c,v 1.28 2008/04/25 17:44:44 christos Exp $");
+__RCSID("$NetBSD: svc.c,v 1.29 2010/07/08 14:45:08 rmind Exp $");
#endif
#endif
@@ -628,7 +628,7 @@
fd_set readfds;
FD_ZERO(&readfds);
- readfds.fds_bits[0] = rdfds;
+ readfds.fds_bits[0] = (unsigned int)rdfds;
svc_getreqset(&readfds);
}
@@ -636,9 +636,8 @@
svc_getreqset(readfds)
fd_set *readfds;
{
- int bit, fd;
- int32_t mask, *maskp;
- int sock;
+ uint32_t mask, *maskp;
+ int sock, bit, fd;
_DIAGASSERT(readfds != NULL);
Home |
Main Index |
Thread Index |
Old Index