diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2015-11-15 05:19:41 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2015-11-15 05:19:41 +0000 |
commit | 2830819497fb2deae3dd71574592ace55f2fbdba (patch) | |
tree | 723440b7a860e794c3710a25b31eb5f4bb33533b /contrib/netbsd-tests | |
parent | dd3d75ba5fe1615f548c991e94f021efee4ad851 (diff) | |
download | src-2830819497fb2deae3dd71574592ace55f2fbdba.tar.gz src-2830819497fb2deae3dd71574592ace55f2fbdba.zip |
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
Notes
Notes:
svn path=/head/; revision=290850
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/rpc/t_rpc.c | 6 |
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 67bc8c7a602e..a9715cf3a97f 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); |