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
This commit is contained in:
parent
dd3d75ba5f
commit
2830819497
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290850
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user