diff options
author | peter <peter@FreeBSD.org> | 2003-10-26 04:32:53 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-26 04:32:53 +0000 |
commit | b35f301d40f8b5c56a1b6afb9637f22e6c33001d (patch) | |
tree | 45ae7e9e9aa827f8c1116d0bd5354bb24bdf2d6d /libexec | |
parent | 9e4da6dd3bcb79c779c3c147e8ead1af0ac735a0 (diff) | |
download | FreeBSD-src-b35f301d40f8b5c56a1b6afb9637f22e6c33001d.zip FreeBSD-src-b35f301d40f8b5c56a1b6afb9637f22e6c33001d.tar.gz |
Tidy up some xdrproc_t related warnings.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ypxfr/ypxfr_main.c | 4 | ||||
-rw-r--r-- | libexec/ypxfr/ypxfrd_getmap.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/libexec/ypxfr/ypxfr_main.c b/libexec/ypxfr/ypxfr_main.c index 1046f84..f9e93b7 100644 --- a/libexec/ypxfr/ypxfr_main.c +++ b/libexec/ypxfr/ypxfr_main.c @@ -549,8 +549,8 @@ leave: 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); diff --git a/libexec/ypxfr/ypxfrd_getmap.c b/libexec/ypxfr/ypxfrd_getmap.c index bd6b828..b1424ac 100644 --- a/libexec/ypxfr/ypxfrd_getmap.c +++ b/libexec/ypxfr/ypxfrd_getmap.c @@ -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); |