From a69a8d9c708a1e66c5427ad177573c8e450da8c6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 1 Nov 2000 09:06:22 +0000 Subject: Update. * sunrpc/clnt_tcp.c (clnt_call): Don't use timeout in tests with zero, use ct->ct_wait. * sunrpc/clnt_unix.c (clnt_call): Likewise. --- sunrpc/clnt_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sunrpc/clnt_unix.c') diff --git a/sunrpc/clnt_unix.c b/sunrpc/clnt_unix.c index 211fcd6f..5280622 100644 --- a/sunrpc/clnt_unix.c +++ b/sunrpc/clnt_unix.c @@ -232,8 +232,8 @@ clntunix_call (h, proc, xdr_args, args_ptr, xdr_results, results_ptr, timeout) } shipnow = - (xdr_results == (xdrproc_t) 0 && timeout.tv_sec == 0 - && timeout.tv_usec == 0) ? FALSE : TRUE; + (xdr_results == (xdrproc_t) 0 && ct->ct_wait.tv_sec == 0 + && ct->ct_wait.tv_usec == 0) ? FALSE : TRUE; call_again: xdrs->x_op = XDR_ENCODE; @@ -256,7 +256,7 @@ call_again: /* * Hack to provide rpc-based message passing */ - if (timeout.tv_sec == 0 && timeout.tv_usec == 0) + if (ct->ct_wait.tv_sec == 0 && ct->ct_wait.tv_usec == 0) return ct->ct_error.re_status = RPC_TIMEDOUT; -- cgit v1.1