[openssh-commits] [openssh] 01/02: cast to avoid type warning in error message
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jul 15 20:07:41 AEST 2016
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 4a984fd342effe5f0aad874a0d538c4322d973c0
Author: Damien Miller <djm at mindrot.org>
Date: Fri Jul 15 18:47:07 2016 +1000
cast to avoid type warning in error message
---
openbsd-compat/arc4random.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/openbsd-compat/arc4random.c b/openbsd-compat/arc4random.c
index 046f57e..b6256b4 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
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list