X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/1c0d47b08c4a5bba026ba15f4f426d3ce0424dfa..d90e699ca2566289cddc68cd0862d05780b54551:/rpc.subproj/clnt_udp.c?ds=sidebyside diff --git a/rpc.subproj/clnt_udp.c b/rpc.subproj/clnt_udp.c index ea76ba1..ab7d0ca 100644 --- a/rpc.subproj/clnt_udp.c +++ b/rpc.subproj/clnt_udp.c @@ -77,7 +77,7 @@ static char *rcsid = "$Id: clnt_udp.c,v 1.4 2002/03/15 22:07:49 majka Exp $"; extern int bindresvport(); extern bool_t xdr_opaque_auth(); -__private_extern__ u_short pmap_getport_timeout(struct sockaddr_in *address, uint32_t program, uint32_t version, uint32_t protocol, struct timeval *timeout, struct timeval *totaltimeout); +extern u_short pmap_getport_timeout(struct sockaddr_in *address, uint32_t program, uint32_t version, uint32_t protocol, struct timeval *timeout, struct timeval *totaltimeout); extern int errno; @@ -135,7 +135,7 @@ struct cu_data { * sendsz and recvsz are the maximum allowable packet sizes that can be * sent and received. */ -__private_extern__ CLIENT * +CLIENT * clntudp_bufcreate_timeout(struct sockaddr_in *raddr, uint32_t program, uint32_t version, int *sockp, uint32_t sendsz, uint32_t recvsz, struct timeval *retry_timeout, struct timeval *total_timeout) { CLIENT *cl; @@ -357,12 +357,12 @@ call_again: #ifdef __LP64__ if ((! XDR_PUTLONG(xdrs, (int *)&proc)) || (! AUTH_MARSHALL(cl->cl_auth, xdrs)) || - (! (*xargs)(xdrs, argsp))) + (! (*xargs)(xdrs, argsp, 0))) return (cu->cu_error.re_status = RPC_CANTENCODEARGS); #else if ((! XDR_PUTLONG(xdrs, (long *)&proc)) || (! AUTH_MARSHALL(cl->cl_auth, xdrs)) || - (! (*xargs)(xdrs, argsp))) + (! (*xargs)(xdrs, argsp, 0))) return (cu->cu_error.re_status = RPC_CANTENCODEARGS); #endif outlen = (int)XDR_GETPOS(xdrs); @@ -501,7 +501,7 @@ clntudp_freeres(cl, xdr_res, res_ptr) register XDR *xdrs = &(cu->cu_outxdrs); xdrs->x_op = XDR_FREE; - return ((*xdr_res)(xdrs, res_ptr)); + return ((*xdr_res)(xdrs, res_ptr, 0)); } static void