summaryrefslogtreecommitdiffstats
path: root/usr.bin/rusers
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 04:57:32 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 04:57:32 +0000
commit03863a4dc29de695c300a8481f27f9e134800d5f (patch)
tree69af30cd33763419da7760ec77d7e4e4cc3f9f63 /usr.bin/rusers
parentfc696c9d63eb04b06d0eb5d4519be6bb6c3d4bc6 (diff)
downloadFreeBSD-src-03863a4dc29de695c300a8481f27f9e134800d5f.zip
FreeBSD-src-03863a4dc29de695c300a8481f27f9e134800d5f.tar.gz
More xdrproc_t warnings.
Diffstat (limited to 'usr.bin/rusers')
-rw-r--r--usr.bin/rusers/rusers.c9
1 files changed, 5 insertions, 4 deletions
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));
}
OpenPOWER on IntegriCloud