diff options
-rw-r--r-- | usr.bin/rup/rup.c | 11 | ||||
-rw-r--r-- | usr.bin/rusers/rusers.c | 9 | ||||
-rw-r--r-- | usr.bin/rwall/rwall.c | 4 |
3 files changed, 14 insertions, 10 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)); } diff --git a/usr.bin/rusers/rusers.c b/usr.bin/rusers/rusers.c index 41c30c5..7d2fc0a 100644 --- a/usr.bin/rusers/rusers.c +++ b/usr.bin/rusers/rusers.c @@ -188,8 +188,8 @@ onehost(char *host) bzero((char *)&up, sizeof(up)); tv.tv_sec = 15; /* XXX ?? */ tv.tv_usec = 0; - if (clnt_call(rusers_clnt, RUSERSPROC_NAMES, xdr_void, NULL, - xdr_utmpidlearr, &up, tv) != RPC_SUCCESS) + if (clnt_call(rusers_clnt, RUSERSPROC_NAMES, (xdrproc_t)xdr_void, NULL, + (xdrproc_t)xdr_utmpidlearr, &up, tv) != RPC_SUCCESS) errx(1, "%s", clnt_sperror(rusers_clnt, "")); addr.sin_addr.s_addr = *(int *)hp->h_addr; rusers_reply((caddr_t)&up, &addr); @@ -204,8 +204,9 @@ allhosts(void) bzero((char *)&up, sizeof(up)); clnt_stat = clnt_broadcast(RUSERSPROG, RUSERSVERS_IDLE, - RUSERSPROC_NAMES, xdr_void, NULL, xdr_utmpidlearr, (char *)&up, - rusers_reply); + RUSERSPROC_NAMES, (xdrproc_t)xdr_void, NULL, + (xdrproc_t)xdr_utmpidlearr, (char *)&up, + (resultproc_t)rusers_reply); if (clnt_stat != RPC_SUCCESS && clnt_stat != RPC_TIMEDOUT) errx(1, "%s", clnt_sperrno(clnt_stat)); } diff --git a/usr.bin/rwall/rwall.c b/usr.bin/rwall/rwall.c index 861c8cf..d5a1c1d 100644 --- a/usr.bin/rwall/rwall.c +++ b/usr.bin/rwall/rwall.c @@ -102,8 +102,8 @@ main(int argc, char *argv[]) tv.tv_sec = 15; /* XXX ?? */ tv.tv_usec = 0; - if (clnt_call(cl, WALLPROC_WALL, xdr_wrapstring, &mbuf, xdr_void, - &res, tv) != RPC_SUCCESS) { + if (clnt_call(cl, WALLPROC_WALL, (xdrproc_t)xdr_wrapstring, &mbuf, + (xdrproc_t)xdr_void, &res, tv) != RPC_SUCCESS) { /* * An error occurred while calling the server. * Print error message and die. |