Fix the compile error once enabled Werror
authorXiaokang Qian <xiaokang.qian@arm.com>
Wed, 11 Mar 2020 05:37:24 +0000 (05:37 +0000)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 16 Mar 2020 09:51:20 +0000 (10:51 +0100)
commit0acaa795b3f5e7f2d00c9adbcbf1a766ea179d64
treea017f5bebb84db0a55c4eb98843c4b4d75f413c7
parent074a6e86e695d9f2dadf9b4ffe405c2eed24fbdc
Fix the compile error once enabled Werror

On 32 bit operating system,size_t is defined as unsigned int,
this is the return type of strlen(), but it isn't aligned with the %ld,
when compiling, warning will be reported.
Change the type to %zu to avoid the warning.

Change-Id: I2943d0dfba88ef42892f14230242008473d6263b

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11325)
test/cmp_ctx_test.c