summaryrefslogtreecommitdiffstats
path: root/usr.bin/openssl/ciphers.c
diff options
context:
space:
mode:
authorbcook <bcook@openbsd.org>2015-03-02 07:51:25 +0000
committerbcook <bcook@openbsd.org>2015-03-02 07:51:25 +0000
commitf73e9946e702b83148ff2549cc3c56c962f67b64 (patch)
tree29487a5e20c9185d88a14c1e90b56130eb127430 /usr.bin/openssl/ciphers.c
parentExtend previous. (diff)
downloadwireguard-openbsd-f73e9946e702b83148ff2549cc3c56c962f67b64.tar.xz
wireguard-openbsd-f73e9946e702b83148ff2549cc3c56c962f67b64.zip
use correct formatter (int, because of type promotion after operations)
ok jsing@
Diffstat (limited to 'usr.bin/openssl/ciphers.c')
-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);