diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-23 08:26:26 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-23 08:26:26 +0000 |
commit | f531d58e9ae6bdb56f1addaa8c88b692af2c1b67 (patch) | |
tree | 8df34bf221cd86f2a679be87c64101e1958d3d8a /contrib/netbsd-tests/lib/libc | |
parent | d26f4792445fa87a6d6029ed885967c87616a2f9 (diff) | |
download | FreeBSD-src-f531d58e9ae6bdb56f1addaa8c88b692af2c1b67.zip FreeBSD-src-f531d58e9ae6bdb56f1addaa8c88b692af2c1b67.tar.gz |
MFC r290850:
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
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
-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 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); |