From 4a984fd342effe5f0aad874a0d538c4322d973c0 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 15 Jul 2016 18:47:07 +1000 Subject: cast to avoid type warning in error message --- openbsd-compat/arc4random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsd-compat/arc4random.c') 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) #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 -- cgit v1.2.3