mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Tidy up some xdrproc_t related warnings.
This commit is contained in:
parent
45ffe5605f
commit
d988f6deec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121538
@ -549,8 +549,8 @@ the local domain name isn't set");
|
||||
char *out = NULL;
|
||||
int stat;
|
||||
if ((stat = callrpc("localhost",YPPROG,YPVERS,YPPROC_CLEAR,
|
||||
xdr_void, (void *)&in,
|
||||
xdr_void, (void *)out)) != RPC_SUCCESS) {
|
||||
(xdrproc_t)xdr_void, (void *)&in,
|
||||
(xdrproc_t)xdr_void, (void *)out)) != RPC_SUCCESS) {
|
||||
yp_error("failed to send 'clear' to local ypserv: %s",
|
||||
clnt_sperrno((enum clnt_stat) stat));
|
||||
ypxfr_exit(YPXFR_CLEAR, ypxfr_temp_map);
|
||||
|
@ -62,7 +62,7 @@ xdr_my_xfr(register XDR *xdrs, xfr *objp)
|
||||
return(FALSE);
|
||||
}
|
||||
}
|
||||
xdr_free(xdr_xfr, (char *)objp);
|
||||
xdr_free((xdrproc_t)xdr_xfr, (char *)objp);
|
||||
if (objp->ok == FALSE) {
|
||||
switch (objp->xfr_u.xfrstat) {
|
||||
case(XFR_DONE):
|
||||
@ -129,8 +129,10 @@ ypxfrd_get_map(char *host, char *map, char *domain, char *tmpname)
|
||||
return(1);
|
||||
}
|
||||
|
||||
if (clnt_call(clnt,YPXFRD_GETMAP,xdr_ypxfr_mapname,(char *)&req,
|
||||
xdr_my_xfr, (char *)&resp, timeout) != RPC_SUCCESS) {
|
||||
if (clnt_call(clnt,YPXFRD_GETMAP,
|
||||
(xdrproc_t)xdr_ypxfr_mapname, (char *)&req,
|
||||
(xdrproc_t)xdr_my_xfr, (char *)&resp,
|
||||
timeout) != RPC_SUCCESS) {
|
||||
yp_error("%s", clnt_sperror(clnt,"call to rpc.ypxfrd failed"));
|
||||
status++;
|
||||
unlink(tmpname);
|
||||
|
Loading…
Reference in New Issue
Block a user