diff options
author | 2014-11-26 05:41:44 +0000 | |
---|---|---|
committer | 2014-11-26 05:41:44 +0000 | |
commit | 0f5f5d2d75039de0d6cc502cb965728e9e78348c (patch) | |
tree | d3c1232e4b7cc7d3e756f35d57941d9b50ea3e13 /lib/libssl/src | |
parent | memset like a normal human. (diff) | |
download | wireguard-openbsd-0f5f5d2d75039de0d6cc502cb965728e9e78348c.tar.xz wireguard-openbsd-0f5f5d2d75039de0d6cc502cb965728e9e78348c.zip |
remove superflous gettimeofday wrapper.
ok beck@ tedu@ miod@ guenther@ doug@ deraadt@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/crypto/bio/bss_dgram.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/libssl/src/crypto/bio/bss_dgram.c b/lib/libssl/src/crypto/bio/bss_dgram.c index b71311be0c5..2e17dc9e21d 100644 --- a/lib/libssl/src/crypto/bio/bss_dgram.c +++ b/lib/libssl/src/crypto/bio/bss_dgram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bss_dgram.c,v 1.36 2014/11/26 05:39:06 bcook Exp $ */ +/* $OpenBSD: bss_dgram.c,v 1.37 2014/11/26 05:41:44 bcook Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -104,8 +104,6 @@ static void dgram_sctp_handle_auth_free_key_event(BIO *b, static int BIO_dgram_should_retry(int s); -static void get_current_time(struct timeval *t); - static BIO_METHOD methods_dgramp = { .type = BIO_TYPE_DGRAM, .name = "datagram socket", @@ -257,7 +255,7 @@ dgram_adjust_rcv_timeout(BIO *b) } /* Get current time */ - get_current_time(&timenow); + gettimeofday(&timenow, NULL); /* Calculate time left until timer expires */ memcpy(&timeleft, &(data->next_timeout), sizeof(struct timeval)); @@ -1611,9 +1609,4 @@ BIO_dgram_non_fatal_error(int err) return (0); } -static void -get_current_time(struct timeval *t) { - gettimeofday(t, NULL); -} - #endif |