]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Cope with OPENSSL_VERSION_NUMBER not being a long.
authorJilles Tjoelker <redacted>
Sun, 20 Mar 2011 17:46:32 +0000 (18:46 +0100)
committerJilles Tjoelker <redacted>
Sun, 20 Mar 2011 17:46:32 +0000 (18:46 +0100)
Contrary to the documentation, this is the case on recent FreeBSD at least.

libratbox/src/openssl.c

index 254975ae2cf73ee7d7fc81c00cf41969bf098390..7de5d1c590bca4e7e2b1eb5fc9657f8d19d24bd8 100644 (file)
@@ -657,7 +657,8 @@ void
 rb_get_ssl_info(char *buf, size_t len)
 {
        rb_snprintf(buf, len, "Using SSL: %s compiled: 0x%lx, library 0x%lx", 
-                   SSLeay_version(SSLEAY_VERSION), OPENSSL_VERSION_NUMBER, SSLeay());
+                   SSLeay_version(SSLEAY_VERSION),
+                   (long)OPENSSL_VERSION_NUMBER, SSLeay());
 }