mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-06 06:29:42 +00:00
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)
This commit is contained in:
parent
074a6e86e6
commit
0acaa795b3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user