summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2015-03-02 07:51:26 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2015-03-02 07:51:26 +0000
commit7252fca22e2db2dafcf73f24775b4aa7ae5b9429 (patch)
tree4b4d2f4199c7ccfb6a9ea1bb1e96047b02bfcbd5
parent563a2016e006810b746be1ff475ba23c2ced2b30 (diff)
use correct formatter (int, because of type promotion after operations)
ok jsing@
-rw-r--r--usr.bin/openssl/ciphers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/openssl/ciphers.c b/usr.bin/openssl/ciphers.c
index d0ea6311ac2..c16a4a637bc 100644
--- a/usr.bin/openssl/ciphers.c
+++ b/usr.bin/openssl/ciphers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ciphers.c,v 1.3 2015/02/09 05:22:56 jsing Exp $ */
+/* $OpenBSD: ciphers.c,v 1.4 2015/03/02 07:51:25 bcook Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@ -138,7 +138,7 @@ ciphers_main(int argc, char **argv)
}
if (ciphers_config.verbose > 1) {
value = SSL_CIPHER_get_value(cipher);
- fprintf(stdout, "%-*s0x%02hX,0x%02hX - ", 10, "",
+ fprintf(stdout, "%-*s0x%02X,0x%02X - ", 10, "",
((value >> 8) & 0xff), (value & 0xff));
}
desc = SSL_CIPHER_description(cipher, NULL, 0);