diff options
author | Andy Polyakov <appro@openssl.org> | 2017-11-11 22:23:12 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2017-11-13 10:58:57 +0100 |
commit | 3a63c0edab842af3e84ef1cad2b4eb701eece3e1 (patch) | |
tree | c45bf7fb2f69874b2779b33e5597a59bbc92e648 /test/ct_test.c | |
parent | ssl/ssl_asn1.c: resolve warnings in VC-WIN32 build, which allows to add /WX. (diff) | |
download | openssl-3a63c0edab842af3e84ef1cad2b4eb701eece3e1.tar.xz openssl-3a63c0edab842af3e84ef1cad2b4eb701eece3e1.zip |
Resolve warnings in VC-WIN32 build, which allows to add /WX.
It's argued that /WX allows to keep better focus on new code, which
motivates its comeback...
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4721)
Diffstat (limited to 'test/ct_test.c')
-rw-r--r-- | test/ct_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ct_test.c b/test/ct_test.c index 45dd2e92f5..21f1868220 100644 --- a/test/ct_test.c +++ b/test/ct_test.c @@ -501,10 +501,11 @@ static int test_default_ct_policy_eval_ctx_time_is_now(void) int success = 0; CT_POLICY_EVAL_CTX *ct_policy_ctx = CT_POLICY_EVAL_CTX_new(); const time_t default_time = CT_POLICY_EVAL_CTX_get_time(ct_policy_ctx) / - 1000; + 1000; const time_t time_tolerance = 600; /* 10 minutes */ - if (!TEST_uint_le(fabs(difftime(time(NULL), default_time)), time_tolerance)) + if (!TEST_uint_le((unsigned int)fabs(difftime(time(NULL), default_time)), + (unsigned int)time_tolerance)) goto end; success = 1; |