summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd
diff options
context:
space:
mode:
authorokan <okan@openbsd.org>2011-03-22 10:16:23 +0000
committerokan <okan@openbsd.org>2011-03-22 10:16:23 +0000
commit6c2da34c701487e6cd820640c4c9f2e778fd6621 (patch)
treec4ca3da6aaace82debb3ee15e1a5bec423abf2bb /usr.sbin/rpc.lockd
parentdon't refer to an error message which no longer exists (bge's jumbo buffer (diff)
downloadwireguard-openbsd-6c2da34c701487e6cd820640c4c9f2e778fd6621.tar.xz
wireguard-openbsd-6c2da34c701487e6cd820640c4c9f2e778fd6621.zip
use timerclear macro
ok miod@
Diffstat (limited to 'usr.sbin/rpc.lockd')
-rw-r--r--usr.sbin/rpc.lockd/procs.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/rpc.lockd/procs.c b/usr.sbin/rpc.lockd/procs.c
index 7d8acc9a15f..af8a71c5751 100644
--- a/usr.sbin/rpc.lockd/procs.c
+++ b/usr.sbin/rpc.lockd/procs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procs.c,v 1.13 2008/06/15 04:48:03 sturm Exp $ */
+/* $OpenBSD: procs.c,v 1.14 2011/03/22 10:16:23 okan Exp $ */
/*
* Copyright (c) 1995
@@ -204,8 +204,8 @@ transmit_result(int opcode, nlm_res *result, struct sockaddr_in *addr)
int success;
if ((cli = get_client(addr, NLM_VERS)) != NULL) {
- timeo.tv_sec = 0; /* No timeout - not expecting response */
- timeo.tv_usec = 0;
+ /* No timeout - not expecting response */
+ timerclear(&timeo);
success = clnt_call(cli, opcode, xdr_nlm_res,
result, xdr_void, &dummy, timeo);
@@ -232,8 +232,8 @@ transmit4_result(int opcode, nlm4_res *result, struct sockaddr_in *addr)
int success;
if ((cli = get_client(addr, NLM_VERS4)) != NULL) {
- timeo.tv_sec = 0; /* No timeout - not expecting response */
- timeo.tv_usec = 0;
+ /* No timeout - not expecting response */
+ timerclear(&timeo);
success = clnt_call(cli, opcode, xdr_nlm4_res,
result, xdr_void, &dummy, timeo);
@@ -360,8 +360,8 @@ nlm_test_msg_1_svc(nlm_testargs *arg, struct svc_req *rqstp)
*/
addr = svc_getcaller(rqstp->rq_xprt);
if ((cli = get_client(addr, NLM_VERS)) != NULL) {
- timeo.tv_sec = 0; /* No timeout - not expecting response */
- timeo.tv_usec = 0;
+ /* No timeout - not expecting response */
+ timerclear(&timeo);
success = clnt_call(cli, NLM_TEST_RES, xdr_nlm_testres,
&result, xdr_void, &dummy, timeo);
@@ -794,8 +794,8 @@ nlm4_test_msg_4_svc(nlm4_testargs *arg, struct svc_req *rqstp)
*/
addr = svc_getcaller(rqstp->rq_xprt);
if ((cli = get_client(addr, NLM_VERS4)) != NULL) {
- timeo.tv_sec = 0; /* No timeout - not expecting response */
- timeo.tv_usec = 0;
+ /* No timeout - not expecting response */
+ timerclear(&timeo);
success = clnt_call(cli, NLM4_TEST_RES, xdr_nlm4_testres,
&result, xdr_void, &dummy, timeo);