diff options
Diffstat (limited to 'libc/inet/rpc/pmap_rmt.c')
-rw-r--r-- | libc/inet/rpc/pmap_rmt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libc/inet/rpc/pmap_rmt.c b/libc/inet/rpc/pmap_rmt.c index a79c34954..f330db07d 100644 --- a/libc/inet/rpc/pmap_rmt.c +++ b/libc/inet/rpc/pmap_rmt.c @@ -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; /* call with each result obtained */ 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: /* timed out */ stat = RPC_TIMEDOUT; @@ -394,7 +394,7 @@ resultproc_t eachresult; /* call with each result obtained */ #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); |