diff options
author | Xiaokang Qian <xiaokang.qian@arm.com> | 2020-03-11 05:37:24 +0000 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-03-16 10:51:20 +0100 |
commit | 0acaa795b3f5e7f2d00c9adbcbf1a766ea179d64 (patch) | |
tree | a017f5bebb84db0a55c4eb98843c4b4d75f413c7 /test/cmp_ctx_test.c | |
parent | 074a6e86e695d9f2dadf9b4ffe405c2eed24fbdc (diff) |
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)
Diffstat (limited to 'test/cmp_ctx_test.c')
-rw-r--r-- | test/cmp_ctx_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmp_ctx_test.c b/test/cmp_ctx_test.c index 903e204622..fa4ef911bf 100644 --- a/test/cmp_ctx_test.c +++ b/test/cmp_ctx_test.c @@ -118,7 +118,7 @@ static int msg_total_size_log_cb(const char *func, const char *file, int line, OSSL_CMP_severity level, const char *msg) { msg_total_size += strlen(msg); - TEST_note("total=%d len=%ld msg='%s'\n", msg_total_size, strlen(msg), msg); + TEST_note("total=%d len=%zu msg='%s'\n", msg_total_size, strlen(msg), msg); return 1; } |