From: Damien Miller Date: Fri, 15 Jul 2016 08:47:07 +0000 (+1000) Subject: cast to avoid type warning in error message X-Git-Tag: V_7_3_P1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a984fd342effe5f0aad874a0d538c4322d973c0;p=thirdparty%2Fopenssh-portable.git cast to avoid type warning in error message --- 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