Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/common/nfsrpc Add for-fun cast ... no, not really. ...



details:   https://anonhg.NetBSD.org/src/rev/023c26b8cfcc
branches:  trunk
changeset: 756632:023c26b8cfcc
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Jul 26 18:51:02 2010 +0000

description:
Add for-fun cast ... no, not really.  casting is never fun.
But now this code builds both on 5.0 and -current.

diffstat:

 tests/fs/common/nfsrpc/svc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 100f9198e23e -r 023c26b8cfcc tests/fs/common/nfsrpc/svc.c
--- a/tests/fs/common/nfsrpc/svc.c      Mon Jul 26 18:47:36 2010 +0000
+++ b/tests/fs/common/nfsrpc/svc.c      Mon Jul 26 18:51:02 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svc.c,v 1.2 2010/07/26 17:53:21 pooka Exp $    */
+/*     $NetBSD: svc.c,v 1.3 2010/07/26 18:51:02 pooka 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.2 2010/07/26 17:53:21 pooka Exp $");
+__RCSID("$NetBSD: svc.c,v 1.3 2010/07/26 18:51:02 pooka Exp $");
 #endif
 #endif
 
@@ -678,7 +678,7 @@
 
        _DIAGASSERT(readfds != NULL);
 
-       maskp = readfds->fds_bits;
+       maskp = (uint32_t *)readfds->fds_bits;
        for (sock = 0; sock < FD_SETSIZE; sock += NFDBITS) {
            for (mask = *maskp++; (bit = ffs(mask)) != 0;
                mask ^= (1 << (bit - 1))) {



Home | Main Index | Thread Index | Old Index