diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2014-11-26 05:41:45 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2014-11-26 05:41:45 +0000 |
commit | 8850dadc19db6bc78baf50b1309aeef97d277668 (patch) | |
tree | 5468dab29ad305b40980e16f047e8dbd6fd61ee9 | |
parent | 0e2a474351a478af2bd67347d031570bd850b935 (diff) |
remove superflous gettimeofday wrapper.
ok beck@ tedu@ miod@ guenther@ doug@ deraadt@
-rw-r--r-- | lib/libcrypto/bio/bss_dgram.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/libcrypto/bio/bss_dgram.c b/lib/libcrypto/bio/bss_dgram.c index b71311be0c5..2e17dc9e21d 100644 --- a/lib/libcrypto/bio/bss_dgram.c +++ b/lib/libcrypto/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 |