Cast values to match printf format strings.
authorJ.W. Jagersma <jwjagersma@gmail.com>
Sat, 1 Oct 2022 16:41:44 +0000 (18:41 +0200)
committerHugo Landau <hlandau@openssl.org>
Mon, 14 Nov 2022 07:47:53 +0000 (07:47 +0000)
commit1555c86e5f7e3c46b4f696ed665c2f988976b81f
treef7f131a40e8f3f4ea2e24206ad7762a00fd7f0c0
parent43086b1bd48958ce95fadba8459ad88675da4fdf
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)
crypto/asn1/x_int64.c
ssl/ssl_ciph.c
ssl/ssl_txt.c
ssl/t1_trce.c
test/asn1_time_test.c
test/ssl_cert_table_internal_test.c