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/rusers | |
parent | fc696c9d63eb04b06d0eb5d4519be6bb6c3d4bc6 (diff) | |
download | FreeBSD-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.c | 9 |
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)); } |