|
@@ -92,8 +92,9 @@ u_long *port_ptr;
|
|
|
r.port_ptr = port_ptr;
|
|
|
r.results_ptr = resp;
|
|
|
r.xdr_results = xdrres;
|
|
|
- stat = CLNT_CALL(client, PMAPPROC_CALLIT, xdr_rmtcall_args, &a,
|
|
|
- xdr_rmtcallres, &r, tout);
|
|
|
+ stat = CLNT_CALL(client, PMAPPROC_CALLIT,
|
|
|
+ (xdrproc_t) xdr_rmtcall_args, (caddr_t) &a,
|
|
|
+ (xdrproc_t) xdr_rmtcallres, (caddr_t) &r, tout);
|
|
|
CLNT_DESTROY(client);
|
|
|
} else {
|
|
|
stat = RPC_FAILED;
|
|
@@ -143,7 +144,7 @@ register struct rmtcallres *crp;
|
|
|
|
|
|
port_ptr = (caddr_t) crp->port_ptr;
|
|
|
if (xdr_reference(xdrs, &port_ptr, sizeof(u_long),
|
|
|
- xdr_u_long) && xdr_u_long(xdrs, &crp->resultslen)) {
|
|
|
+ (xdrproc_t) xdr_u_long) && xdr_u_long(xdrs, &crp->resultslen)) {
|
|
|
crp->port_ptr = (u_long *) port_ptr;
|
|
|
return ((*(crp->xdr_results)) (xdrs, crp->results_ptr));
|
|
|
}
|
|
@@ -341,10 +342,9 @@ resultproc_t eachresult;
|
|
|
recv_again:
|
|
|
msg.acpted_rply.ar_verf = _null_auth;
|
|
|
msg.acpted_rply.ar_results.where = (caddr_t) & r;
|
|
|
- msg.acpted_rply.ar_results.proc = xdr_rmtcallres;
|
|
|
+ msg.acpted_rply.ar_results.proc = (xdrproc_t) xdr_rmtcallres;
|
|
|
readfds = mask;
|
|
|
- switch (select(_rpc_dtablesize(), &readfds, (int *) NULL,
|
|
|
- (int *) NULL, &t)) {
|
|
|
+ switch (select(_rpc_dtablesize(), &readfds, NULL, NULL, &t)) {
|
|
|
|
|
|
case 0:
|
|
|
stat = RPC_TIMEDOUT;
|
|
@@ -394,7 +394,7 @@ resultproc_t eachresult;
|
|
|
#endif
|
|
|
}
|
|
|
xdrs->x_op = XDR_FREE;
|
|
|
- msg.acpted_rply.ar_results.proc = xdr_void;
|
|
|
+ msg.acpted_rply.ar_results.proc = (xdrproc_t) xdr_void;
|
|
|
(void) xdr_replymsg(xdrs, &msg);
|
|
|
(void) (*xresults) (xdrs, resultsp);
|
|
|
xdr_destroy(xdrs);
|