summaryrefslogtreecommitdiffstats
path: root/ssl/t1_trce.c
diff options
context:
space:
mode:
authorJ.W. Jagersma <jwjagersma@gmail.com>2022-10-01 18:41:44 +0200
committerHugo Landau <hlandau@openssl.org>2022-11-14 08:47:53 +0100
commit1555c86e5f7e3c46b4f696ed665c2f988976b81f (patch)
treef7f131a40e8f3f4ea2e24206ad7762a00fd7f0c0 /ssl/t1_trce.c
parentResign test/certs/rootCA.pem to expire in 100 years (diff)
downloadopenssl-1555c86e5f7e3c46b4f696ed665c2f988976b81f.tar.xz
openssl-1555c86e5f7e3c46b4f696ed665c2f988976b81f.zip
Cast values to match printf format strings.
For some reason djgpp uses '(unsigned) long int' for (u)int32_t. This causes errors with -Werror=format, even though these types are in practice identical. Obvious solution: cast to the types indicated by the format string. For asn1_time_test.c I changed the format string to %lli since time_t may be 'long long' some platforms. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19322)
Diffstat (limited to 'ssl/t1_trce.c')
-rw-r--r--ssl/t1_trce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_trce.c b/ssl/t1_trce.c
index 6d314c5331..fbaa199fd5 100644
--- a/ssl/t1_trce.c
+++ b/ssl/t1_trce.c
@@ -906,7 +906,7 @@ static int ssl_print_extension(BIO *bio, int indent, int server,
| ((unsigned int)ext[2] << 8)
| (unsigned int)ext[3];
BIO_indent(bio, indent + 2, 80);
- BIO_printf(bio, "max_early_data=%u\n", max_early_data);
+ BIO_printf(bio, "max_early_data=%u\n", (unsigned int)max_early_data);
break;
default: