Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 2015 08:26:26 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r291177 - stable/10/contrib/netbsd-tests/lib/libc/rpc
Message-ID:  <201511230826.tAN8QQNC085328@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Nov 23 08:26:26 2015
New Revision: 291177
URL: https://svnweb.freebsd.org/changeset/base/291177

Log:
  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

Modified:
  stable/10/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c	Mon Nov 23 08:24:48 2015	(r291176)
+++ stable/10/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c	Mon Nov 23 08:26:26 2015	(r291177)
@@ -73,8 +73,14 @@ onehost(const char *host, const char *tr
 
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511230826.tAN8QQNC085328>