summaryrefslogtreecommitdiff
path: root/openbsd-compat/arc4random.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2016-07-15 18:47:07 +1000
committerDamien Miller <djm@mindrot.org>2016-07-15 20:02:27 +1000
commit4a984fd342effe5f0aad874a0d538c4322d973c0 (patch)
treee4f98d66370beff6a897c86916e08cc2fce47d33 /openbsd-compat/arc4random.c
parent5abfb15ced985c340359ae7fb65a625ed3692b3e (diff)
cast to avoid type warning in error message
Diffstat (limited to 'openbsd-compat/arc4random.c')
-rw-r--r--openbsd-compat/arc4random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/arc4random.c b/openbsd-compat/arc4random.c
index 046f57e6..b6256b4f 100644
--- a/openbsd-compat/arc4random.c
+++ b/openbsd-compat/arc4random.c
@@ -110,8 +110,8 @@ _rs_stir(void)
#ifdef WITH_OPENSSL
if (RAND_bytes(rnd, sizeof(rnd)) <= 0)
- fatal("Couldn't obtain random bytes (error %ld)",
- ERR_get_error());
+ fatal("Couldn't obtain random bytes (error 0x%lx)",
+ (unsigned long)ERR_get_error());
#else
getrnd(rnd, sizeof(rnd));
#endif