From: cheloha Date: Sat, 6 Jan 2018 15:37:36 +0000 (+0000) Subject: Remove dead gettimeofday calls and timevals. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a49620e5a222eddf0e5cf0fb31b5343d5e7d9c9f;p=openbsd Remove dead gettimeofday calls and timevals. ok jca@ --- 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 =