summaryrefslogtreecommitdiff
path: root/openbsd-compat
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
parent5abfb15ced985c340359ae7fb65a625ed3692b3e (diff)
cast to avoid type warning in error message
Diffstat (limited to 'openbsd-compat')
-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 046f57e61..b6256b4f8 100644
--- a/openbsd-compat/arc4random.c
+++ b/openbsd-compat/arc4random.c
@@ -110,8 +110,8 @@ _rs_stir(void)
110 110
111#ifdef WITH_OPENSSL 111#ifdef WITH_OPENSSL
112 if (RAND_bytes(rnd, sizeof(rnd)) <= 0) 112 if (RAND_bytes(rnd, sizeof(rnd)) <= 0)
113 fatal("Couldn't obtain random bytes (error %ld)", 113 fatal("Couldn't obtain random bytes (error 0x%lx)",
114 ERR_get_error()); 114 (unsigned long)ERR_get_error());
115#else 115#else
116 getrnd(rnd, sizeof(rnd)); 116 getrnd(rnd, sizeof(rnd));
117#endif 117#endif