cast to avoid type warning in error message

This commit is contained in:
Damien Miller 2016-07-15 18:47:07 +10:00
parent 5abfb15ced
commit 4a984fd342
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ _rs_stir(void)
#ifdef WITH_OPENSSL #ifdef WITH_OPENSSL
if (RAND_bytes(rnd, sizeof(rnd)) <= 0) if (RAND_bytes(rnd, sizeof(rnd)) <= 0)
fatal("Couldn't obtain random bytes (error %ld)", fatal("Couldn't obtain random bytes (error 0x%lx)",
ERR_get_error()); (unsigned long)ERR_get_error());
#else #else
getrnd(rnd, sizeof(rnd)); getrnd(rnd, sizeof(rnd));
#endif #endif