diff options
author | Ed Tanous <ed.tanous@intel.com> | 2019-10-24 21:12:47 +0300 |
---|---|---|
committer | James Feist <james.feist@linux.intel.com> | 2019-11-11 23:33:48 +0300 |
commit | 99131cd04bfc4a187e7a8d63803cb8911e64a08e (patch) | |
tree | c85b64c16b541561965f014d6e850279da04d3db /include/pam_authenticate.hpp | |
parent | a9cbc9cd3c957996831d731ad50c69f920ab065b (diff) | |
download | bmcweb-99131cd04bfc4a187e7a8d63803cb8911e64a08e.tar.xz |
Replace all uses of NULL with nullptr
This was an automatic change made by clang-tidy. It moves all uses of
NULL to nullptr, which are equivalent, but nullptr is prefered.
Tested: Code compiles.
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: I9526599b222693c9723a69934b599c7a5b5d1fbf
Diffstat (limited to 'include/pam_authenticate.hpp')
-rw-r--r-- | include/pam_authenticate.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pam_authenticate.hpp b/include/pam_authenticate.hpp index 464f171446..5d78efcfc1 100644 --- a/include/pam_authenticate.hpp +++ b/include/pam_authenticate.hpp @@ -54,7 +54,7 @@ inline bool pamAuthenticateUser(const std::string_view username, std::string passStr(password); const struct pam_conv localConversation = { pamFunctionConversation, const_cast<char*>(passStr.c_str())}; - pam_handle_t* localAuthHandle = NULL; // this gets set by pam_start + pam_handle_t* localAuthHandle = nullptr; // this gets set by pam_start if (pam_start("webserver", userStr.c_str(), &localConversation, &localAuthHandle) != PAM_SUCCESS) @@ -91,7 +91,7 @@ inline int pamUpdatePassword(const std::string& username, { const struct pam_conv localConversation = { pamFunctionConversation, const_cast<char*>(password.c_str())}; - pam_handle_t* localAuthHandle = NULL; // this gets set by pam_start + pam_handle_t* localAuthHandle = nullptr; // this gets set by pam_start int retval = pam_start("passwd", username.c_str(), &localConversation, &localAuthHandle); |