summaryrefslogtreecommitdiffstats
path: root/usr.sbin/spray/spray.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/spray/spray.c')
-rw-r--r--usr.sbin/spray/spray.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/spray/spray.c b/usr.sbin/spray/spray.c
index ab98c85..39759eb 100644
--- a/usr.sbin/spray/spray.c
+++ b/usr.sbin/spray/spray.c
@@ -133,11 +133,12 @@ main(int argc, char *argv[])
* The following (undocumented) hack resets the internal state
* of the client handle.
*/
- clnt_control(cl, CLSET_TIMEOUT, (caddr_t)&NO_DEFAULT);
+ clnt_control(cl, CLSET_TIMEOUT, &NO_DEFAULT);
/* Clear server statistics */
- if (clnt_call(cl, SPRAYPROC_CLEAR, xdr_void, NULL, xdr_void, NULL, TIMEOUT) != RPC_SUCCESS)
+ if (clnt_call(cl, SPRAYPROC_CLEAR, (xdrproc_t)xdr_void, NULL,
+ (xdrproc_t)xdr_void, NULL, TIMEOUT) != RPC_SUCCESS)
errx(1, "%s", clnt_sperror(cl, NULL));
@@ -147,7 +148,8 @@ main(int argc, char *argv[])
fflush (stdout);
for (i = 0; i < count; i++) {
- clnt_call(cl, SPRAYPROC_SPRAY, xdr_sprayarr, &host_array, xdr_void, NULL, ONE_WAY);
+ clnt_call(cl, SPRAYPROC_SPRAY, (xdrproc_t)xdr_sprayarr,
+ &host_array, (xdrproc_t)xdr_void, NULL, ONE_WAY);
if (delay) {
usleep(delay);
@@ -156,7 +158,8 @@ main(int argc, char *argv[])
/* Collect statistics from server */
- if (clnt_call(cl, SPRAYPROC_GET, xdr_void, NULL, xdr_spraycumul, &host_stats, TIMEOUT) != RPC_SUCCESS)
+ if (clnt_call(cl, SPRAYPROC_GET, (xdrproc_t)xdr_void, NULL,
+ (xdrproc_t)xdr_spraycumul, &host_stats, TIMEOUT) != RPC_SUCCESS)
errx(1, "%s", clnt_sperror(cl, NULL));
xmit_time = host_stats.clock.sec +
OpenPOWER on IntegriCloud