Skip to content

Commit

Permalink
Use nullptr in fboss/agent/hw/bcm/BcmEcmpUtils.cpp
Browse files Browse the repository at this point in the history
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
  • Loading branch information
r-barnes authored and facebook-github-bot committed Mar 13, 2024
1 parent 78d7d2c commit c122b39
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c122b39

Please sign in to comment.