From cab1ebf2d611404f6db709badbbfc69bd570303f Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Thu, 14 Apr 2016 18:47:16 +0900 Subject: [PATCH] move MDK5 current_time to test.h --- examples/client/client.c | 2 -- examples/server/server.c | 2 -- wolfssl/test.h | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/client/client.c b/examples/client/client.c index 24d5b09b0..fc8e1276c 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -150,8 +150,6 @@ static void ShowVersions(void) printf("3\n"); } -extern double current_time(int); - int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port, int doDTLS, int benchmark, int resumeSession) { diff --git a/examples/server/server.c b/examples/server/server.c index c8ef0c389..d19f6adf5 100644 --- a/examples/server/server.c +++ b/examples/server/server.c @@ -125,8 +125,6 @@ static int NonBlockingSSL_Accept(SSL* ssl) return ret; } -extern double current_time(int); - /* Echo number of bytes specified by -e arg */ int ServerEchoData(SSL* ssl, int clientfd, int echoData, int throughput) { diff --git a/wolfssl/test.h b/wolfssl/test.h index 4bde12c99..2518744e9 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -1005,7 +1005,8 @@ static INLINE unsigned int my_psk_server_cb(WOLFSSL* ssl, const char* identity, return (double)tv.tv_sec + (double)tv.tv_usec / 1000000; } - +#else + extern double current_time(int reset); #endif #endif /* USE_WINDOWS_API */