Resolve warnings in VC-WIN32 build, which allows to add /WX.
[oweals/openssl.git] / test / clienthellotest.c
index acd27d4a2bc5d9f0c57da87b6f025ddbfadb59e8..8ba65ce4fb476e9346a18c4bb72fccdc650de56a 100644 (file)
@@ -126,7 +126,7 @@ static int test_client_hello(int currtest)
          * We reset the creation time so that we don't discard the session as
          * too old.
          */
-        if (!TEST_true(SSL_SESSION_set_time(sess, time(NULL)))
+        if (!TEST_true(SSL_SESSION_set_time(sess, (long)time(NULL)))
                 || !TEST_true(SSL_set_session(con, sess)))
             goto end;
     }