summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2018-01-06 15:37:37 +0000
committercheloha <cheloha@cvs.openbsd.org>2018-01-06 15:37:37 +0000
commit9637803b18cb533832aae7c803e3acdd04946565 (patch)
tree259cb2d2111a2dae85707401c641b8bf3193897a
parenta27306fb6bac13ebb8c5cdd6ac914354026af668 (diff)
Remove dead gettimeofday calls and timevals.
ok jca@
-rw-r--r--lib/libc/rpc/clnt_tcp.c4
-rw-r--r--lib/libc/rpc/clnt_udp.c4
2 files changed, 2 insertions, 6 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;
diff --git a/lib/libc/rpc/clnt_udp.c b/lib/libc/rpc/clnt_udp.c
index 87be468a564..fd0d83611c0 100644
--- a/lib/libc/rpc/clnt_udp.c
+++ b/lib/libc/rpc/clnt_udp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clnt_udp.c,v 1.34 2017/12/14 18:56:22 jca Exp $ */
+/* $OpenBSD: clnt_udp.c,v 1.35 2018/01/06 15:37:36 cheloha Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -109,7 +109,6 @@ clntudp_bufcreate(struct sockaddr_in *raddr, u_long program, u_long version,
{
CLIENT *cl;
struct cu_data *cu = NULL;
- struct timeval now;
struct rpc_msg call_msg;
cl = (CLIENT *)mem_alloc(sizeof(CLIENT));
@@ -128,7 +127,6 @@ clntudp_bufcreate(struct sockaddr_in *raddr, u_long program, u_long version,
}
cu->cu_outbuf = &cu->cu_inbuf[recvsz];
- (void)gettimeofday(&now, NULL);
if (raddr->sin_port == 0) {
u_short port;
if ((port =