mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Refactor variable declarations for improved clarity and consistency in multiple source files
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user