Refactor variable declarations for improved clarity and consistency in multiple source files

This commit is contained in:
2025-10-01 02:39:37 +01:00
parent a7434322ea
commit a1b3b5db92
10 changed files with 97 additions and 141 deletions

View File

@@ -66,15 +66,13 @@ protected:
TEST_F(sha256Fixture, sha256)
{
SHA256_CTX *ctx;
unsigned char hash[SHA256_DIGEST_LENGTH];
int ret;
ctx = static_cast<SHA256_CTX *>(malloc(sizeof(SHA256_CTX)));
SHA256_CTX *ctx = static_cast<SHA256_CTX *>(malloc(sizeof(SHA256_CTX)));
EXPECT_NE(nullptr, ctx);
ret = SHA256_Init(ctx);
int ret = SHA256_Init(ctx);
EXPECT_EQ(ret, 1);