summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-15 05:19:41 +0000
committerngie <ngie@FreeBSD.org>2015-11-15 05:19:41 +0000
commitf2c86214c929e859022feaf57e5b54514e0e061c (patch)
tree723440b7a860e794c3710a25b31eb5f4bb33533b /contrib/netbsd-tests
parentdb58eef5691b805614d2328df4f5a90b2fe5bfca (diff)
downloadFreeBSD-src-f2c86214c929e859022feaf57e5b54514e0e061c.zip
FreeBSD-src-f2c86214c929e859022feaf57e5b54514e0e061c.tar.gz
Cast xdr_void to xdrproc_t to mute -Wincompatible-pointer-types warnings from
clang This pattern is used in other areas of lib/libc/rpc MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r--contrib/netbsd-tests/lib/libc/rpc/t_rpc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c b/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
index 67bc8c7..a9715cf 100644
--- a/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
+++ b/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
@@ -73,8 +73,14 @@ onehost(const char *host, const char *transp)
tv.tv_sec = 1;
tv.tv_usec = 0;
+#ifdef __FreeBSD__
+ if (clnt_call(clnt, RPCBPROC_NULL, (xdrproc_t)xdr_void, NULL,
+ (xdrproc_t)xdr_void, NULL, tv)
+ != RPC_SUCCESS)
+#else
if (clnt_call(clnt, RPCBPROC_NULL, xdr_void, NULL, xdr_void, NULL, tv)
!= RPC_SUCCESS)
+#endif
ERRX(EXIT_FAILURE, "clnt_call (%s)", clnt_sperror(clnt, ""));
clnt_control(clnt, CLGET_SVC_ADDR, (char *) &addr);
reply(NULL, &addr, NULL);
OpenPOWER on IntegriCloud