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 retire unwieldy casts
details: https://anonhg.NetBSD.org/src/rev/100f9198e23e
branches: trunk
changeset: 756631:100f9198e23e
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Jul 26 18:47:36 2010 +0000
description:
retire unwieldy casts
diffstat:
tests/fs/common/nfsrpc/svc_vc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 1934f1ce1d8e -r 100f9198e23e tests/fs/common/nfsrpc/svc_vc.c
--- a/tests/fs/common/nfsrpc/svc_vc.c Mon Jul 26 17:53:21 2010 +0000
+++ b/tests/fs/common/nfsrpc/svc_vc.c Mon Jul 26 18:47:36 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svc_vc.c,v 1.1 2010/07/26 15:56:45 pooka Exp $ */
+/* $NetBSD: svc_vc.c,v 1.2 2010/07/26 18:47:36 pooka Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
static char *sccsid = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";
static char *sccsid = "@(#)svc_tcp.c 2.2 88/08/01 4.0 RPCSRC";
#else
-__RCSID("$NetBSD: svc_vc.c,v 1.1 2010/07/26 15:56:45 pooka Exp $");
+__RCSID("$NetBSD: svc_vc.c,v 1.2 2010/07/26 18:47:36 pooka Exp $");
#endif
#endif
@@ -365,10 +365,10 @@
cd->maxrec = r->maxrec;
if (cd->maxrec != 0) {
- flags = rump_sys_fcntl(sock, F_GETFL, (void *)0);
+ flags = rump_sys_fcntl(sock, F_GETFL, 0);
if (flags == -1)
goto out;
- if (rump_sys_fcntl(sock, F_SETFL, (void *)(flags | O_NONBLOCK)) == -1)
+ if (rump_sys_fcntl(sock, F_SETFL, flags | O_NONBLOCK) == -1)
goto out;
if (cd->recvsize > cd->maxrec)
cd->recvsize = cd->maxrec;
Home |
Main Index |
Thread Index |
Old Index