From 900184b600629f0edd528bd8ba77cb06794eb91a Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 26 Oct 2019 20:37:48 +0200 Subject: [PATCH] ikeys: "declaration shadows a variable in the global scope" warning --- client/loclass/ikeys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/loclass/ikeys.c b/client/loclass/ikeys.c index 2f3a6c067..339ea91f7 100644 --- a/client/loclass/ikeys.c +++ b/client/loclass/ikeys.c @@ -422,7 +422,7 @@ typedef struct { uint8_t div_key[8]; } Testcase; -static int testDES(Testcase testcase, mbedtls_des_context ctx_enc, mbedtls_des_context ctx_dec) { +static int testDES(Testcase testcase) { uint8_t des_encrypted_csn[8] = {0}; uint8_t decrypted[8] = {0}; uint8_t div_key[8] = {0}; @@ -562,7 +562,7 @@ static int testKeyDiversificationWithMasterkeyTestcases() { PrintAndLogEx(INFO, "Testing encryption/decryption"); for (i = 0; memcmp(testcases + i, empty, 8); i++) - error += testDES(testcases[i], ctx_enc, ctx_dec); + error += testDES(testcases[i]); if (error) PrintAndLogEx(FAILED, "%d errors occurred (%d testcases)", error, i);