diff options
author | 2018-01-06 15:37:36 +0000 | |
---|---|---|
committer | 2018-01-06 15:37:36 +0000 | |
commit | a49620e5a222eddf0e5cf0fb31b5343d5e7d9c9f (patch) | |
tree | c6ec8630c4e9131b09d336dcdc489ffbc1dbd376 /lib/libc/rpc/clnt_tcp.c | |
parent | sxits(4) (diff) | |
download | wireguard-openbsd-a49620e5a222eddf0e5cf0fb31b5343d5e7d9c9f.tar.xz wireguard-openbsd-a49620e5a222eddf0e5cf0fb31b5343d5e7d9c9f.zip |
Remove dead gettimeofday calls and timevals.
ok jca@
Diffstat (limited to 'lib/libc/rpc/clnt_tcp.c')
-rw-r--r-- | lib/libc/rpc/clnt_tcp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/rpc/clnt_tcp.c b/lib/libc/rpc/clnt_tcp.c index 4c3034fc7ca..c29d0f4c1d9 100644 --- a/lib/libc/rpc/clnt_tcp.c +++ b/lib/libc/rpc/clnt_tcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clnt_tcp.c,v 1.31 2017/12/14 18:56:22 jca Exp $ */ +/* $OpenBSD: clnt_tcp.c,v 1.32 2018/01/06 15:37:36 cheloha Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -114,7 +114,6 @@ clnttcp_create(struct sockaddr_in *raddr, u_long prog, u_long vers, int *sockp, { CLIENT *h; struct ct_data *ct = NULL; - struct timeval now; struct rpc_msg call_msg; h = (CLIENT *)mem_alloc(sizeof(*h)); @@ -174,7 +173,6 @@ clnttcp_create(struct sockaddr_in *raddr, u_long prog, u_long vers, int *sockp, /* * Initialize call message */ - (void)gettimeofday(&now, NULL); call_msg.rm_xid = arc4random(); call_msg.rm_direction = CALL; call_msg.rm_call.cb_rpcvers = RPC_MSG_VERSION; |