From c122b39d42359a61902d337a3a7a0e6207562de6 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Wed, 13 Mar 2024 09:05:42 -0700 Subject: [PATCH] Use `nullptr` in fboss/agent/hw/bcm/BcmEcmpUtils.cpp Summary: `nullptr` is preferable to `0` or `NULL`. Let's use it everywhere so we can enable `-Wzero-as-null-pointer-constant`. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: jasmeetbagga Differential Revision: D54835443 fbshipit-source-id: 032f9cbd82eb35204c8c3a0b710c1b245ad28417 --- .../delegatedcred/test/SelfDelegatedCredentialTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fizz/extensions/delegatedcred/test/SelfDelegatedCredentialTest.cpp b/fizz/extensions/delegatedcred/test/SelfDelegatedCredentialTest.cpp index 9a638e70ac9..6e71b4adba4 100644 --- a/fizz/extensions/delegatedcred/test/SelfDelegatedCredentialTest.cpp +++ b/fizz/extensions/delegatedcred/test/SelfDelegatedCredentialTest.cpp @@ -59,8 +59,8 @@ class SelfDelegatedCredentialTest : public Test { #if FIZZ_OPENSSL_HAS_ED25519 folly::ssl::EvpPkeyUniquePtr generateEd25519PrivKey() { - EVP_PKEY* pkey = NULL; - EVP_PKEY_CTX* pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_ED25519, NULL); + EVP_PKEY* pkey = nullptr; + EVP_PKEY_CTX* pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_ED25519, nullptr); EVP_PKEY_keygen_init(pctx); EVP_PKEY_keygen(pctx, &pkey); EVP_PKEY_CTX_free(pctx);