From dc4d4cc8d4c90a6de06da3c07ec526c4d738db3d Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Thu, 13 Jun 2019 18:37:30 +0200 Subject: [PATCH] tests/torture_rekey: Do not mix integer types In torture_rekey_time(), "long long" was used instead of uint32_t. This makes the test to fail in some architectures where the sizes don't match. Signed-off-by: Anderson Toshiyuki Sasaki Reviewed-by: Andreas Schneider --- tests/client/torture_rekey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/client/torture_rekey.c b/tests/client/torture_rekey.c index 44d68e1d..d9d9f6a9 100644 --- a/tests/client/torture_rekey.c +++ b/tests/client/torture_rekey.c @@ -327,7 +327,7 @@ static void torture_rekey_time(void **state) int rc; char data[256]; unsigned int i; - long long time = 3; /* 3 seconds */ + uint32_t time = 3; /* 3 seconds */ struct ssh_crypto_struct *c = NULL; unsigned char *secret_hash = NULL;