diff options
author | Peter Wemm <peter@FreeBSD.org> | 2003-10-26 04:57:32 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2003-10-26 04:57:32 +0000 |
commit | ed838bb1cd248c9ee0a737e97fa49d0f9d5e46bb (patch) | |
tree | 69af30cd33763419da7760ec77d7e4e4cc3f9f63 /usr.bin/rup | |
parent | 35f47c50028b10c693cdea480dcd1d89b4e1c82b (diff) | |
download | src-test2-ed838bb1cd248c9ee0a737e97fa49d0f9d5e46bb.tar.gz src-test2-ed838bb1cd248c9ee0a737e97fa49d0f9d5e46bb.zip |
Notes
Diffstat (limited to 'usr.bin/rup')
-rw-r--r-- | usr.bin/rup/rup.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c index c078a9542b18..d2d1f85f8d45 100644 --- a/usr.bin/rup/rup.c +++ b/usr.bin/rup/rup.c @@ -90,7 +90,7 @@ remember_host(struct in_addr addr) hosts = hp; } -static int +static bool_t rstat_reply(caddr_t replyp, struct sockaddr_in *raddrp) { struct tm *tmp_time; @@ -182,7 +182,9 @@ onehost(char *host) bzero((char *)&host_stat, sizeof(host_stat)); tv.tv_sec = 15; /* XXX ??? */ tv.tv_usec = 0; - if (clnt_call(rstat_clnt, RSTATPROC_STATS, xdr_void, NULL, xdr_statstime, &host_stat, tv) != RPC_SUCCESS) { + if (clnt_call(rstat_clnt, RSTATPROC_STATS, + (xdrproc_t)xdr_void, NULL, + (xdrproc_t)xdr_statstime, &host_stat, tv) != RPC_SUCCESS) { warnx("%s: %s", host, clnt_sperror(rstat_clnt, host)); clnt_destroy(rstat_clnt); return(-1); @@ -201,8 +203,9 @@ allhosts(void) enum clnt_stat clnt_stat; clnt_stat = clnt_broadcast(RSTATPROG, RSTATVERS_TIME, RSTATPROC_STATS, - xdr_void, NULL, - xdr_statstime, &host_stat, rstat_reply); + (xdrproc_t)xdr_void, NULL, + (xdrproc_t)xdr_statstime, &host_stat, + (resultproc_t)rstat_reply); if (clnt_stat != RPC_SUCCESS && clnt_stat != RPC_TIMEDOUT) errx(1, "%s", clnt_sperrno(clnt_stat)); } |