Module Name: src Committed By: pooka Date: Mon Jul 26 18:47:37 UTC 2010
Modified Files: src/tests/fs/common/nfsrpc: svc_vc.c Log Message: retire unwieldy casts To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/fs/common/nfsrpc/svc_vc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/fs/common/nfsrpc/svc_vc.c diff -u src/tests/fs/common/nfsrpc/svc_vc.c:1.1 src/tests/fs/common/nfsrpc/svc_vc.c:1.2 --- src/tests/fs/common/nfsrpc/svc_vc.c:1.1 Mon Jul 26 15:56:45 2010 +++ src/tests/fs/common/nfsrpc/svc_vc.c Mon Jul 26 18:47:36 2010 @@ -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;