[style] replace NULL with nullptr (#5109)

This commit is contained in:
Jonathan Hui
2020-06-17 22:44:54 -07:00
committed by GitHub
parent 3b362071e5
commit 1326d64a64
209 changed files with 1981 additions and 1906 deletions
+4 -4
View File
@@ -51,8 +51,8 @@ void TestHmacSha256(void)
},
},
{
NULL,
NULL,
nullptr,
nullptr,
{},
},
};
@@ -64,9 +64,9 @@ void TestHmacSha256(void)
ot::Crypto::HmacSha256 hmac;
uint8_t hash[ot::Crypto::HmacSha256::kHashSize];
VerifyOrQuit(instance != NULL, "Null OpenThread instance");
VerifyOrQuit(instance != nullptr, "Null OpenThread instance");
for (int i = 0; tests[i].key != NULL; i++)
for (int i = 0; tests[i].key != nullptr; i++)
{
hmac.Start(reinterpret_cast<const uint8_t *>(tests[i].key), static_cast<uint16_t>(strlen(tests[i].key)));
hmac.Update(reinterpret_cast<const uint8_t *>(tests[i].data), static_cast<uint16_t>(strlen(tests[i].data)));