- (djm) [entropy.c] cast OPENSSL_VERSION_NUMBER to u_long to avoid

gcc warning on platforms where it defaults to int
This commit is contained in:
Damien Miller 2011-01-13 21:05:27 +11:00
parent 9b87a5ce3c
commit ff22df538e
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
- (tim) [Makefile.in] test the ECC bits if we have the capability. ok djm
- (tim) [Makefile.in configure.ac opensshd.init.in] Add support for generating
ecdsa keys. ok djm.
- (djm) [entropy.c] cast OPENSSL_VERSION_NUMBER to u_long to avoid
gcc warning on platforms where it defaults to int
20110212
- OpenBSD CVS Sync

View File

@ -157,7 +157,7 @@ init_rng(void)
*/
if ((SSLeay() ^ OPENSSL_VERSION_NUMBER) & ~0xff0L)
fatal("OpenSSL version mismatch. Built against %lx, you "
"have %lx", OPENSSL_VERSION_NUMBER, SSLeay());
"have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay());
#ifndef OPENSSL_PRNG_ONLY
original_uid = getuid();