mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
More xdrproc_t warnings.
This commit is contained in:
parent
35f47c5002
commit
ed838bb1cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121545
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user