diff options
author | peter <peter@FreeBSD.org> | 2003-10-26 04:57:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-26 04:57:32 +0000 |
commit | 03863a4dc29de695c300a8481f27f9e134800d5f (patch) | |
tree | 69af30cd33763419da7760ec77d7e4e4cc3f9f63 /usr.bin/rup | |
parent | fc696c9d63eb04b06d0eb5d4519be6bb6c3d4bc6 (diff) | |
download | FreeBSD-src-03863a4dc29de695c300a8481f27f9e134800d5f.zip FreeBSD-src-03863a4dc29de695c300a8481f27f9e134800d5f.tar.gz |
More xdrproc_t warnings.
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 c078a95..d2d1f85 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)); } |