]> granicus.if.org Git - libevent/commitdiff
Make ssl version check in unit tests work
authorNick Mathewson <nickm@torproject.org>
Sun, 18 Nov 2012 06:36:03 +0000 (01:36 -0500)
committerNick Mathewson <nickm@torproject.org>
Sun, 18 Nov 2012 06:36:03 +0000 (01:36 -0500)
test/regress_ssl.c

index 271a962f5962672a6aac1a6a26a6aa655e9d27ae..1ce5f6aa222dc6687e98dbfcca3fc17e31e1945c 100644 (file)
@@ -159,7 +159,7 @@ init_ssl(void)
        SSL_load_error_strings();
        OpenSSL_add_all_algorithms();
        if (SSLeay() != OPENSSL_VERSION_NUMBER) {
-               TT_DECLARE("WARN", ("Version mismatch for openssl: compiled with %lx but running with %lx", OPENSSL_VERSION_NUMBER, SSLeay()));
+               TT_DECLARE("WARN", ("Version mismatch for openssl: compiled with %lx but running with %lx", (unsigned long)OPENSSL_VERSION_NUMBER, (unsigned long)SSLeay()));
        }
 }