diff options
author | Ed Tanous <ed@tanous.net> | 2024-01-03 00:16:50 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-01-09 20:44:00 +0300 |
commit | 8ece0e457ee994e54c23ee7393fbce831d81a954 (patch) | |
tree | d673c8d7c744c2057a7250e4027e82249480c2fe /include | |
parent | f3cb5df94799e94df37f9e2e6c2fcc473e0cae4a (diff) | |
download | bmcweb-8ece0e457ee994e54c23ee7393fbce831d81a954.tar.xz |
Fix spelling mistakes
These were found with:
codespell -w $(git ls-files | grep "\.[hc]\(pp\)\?$")
At some point in the future, we might want to get this enabled in CI.
Change-Id: Iccb57b2adfd06a2e177e99db2923fe4e8e329118
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/dbus_singleton.hpp | 4 | ||||
-rw-r--r-- | include/http_utility.hpp | 6 | ||||
-rw-r--r-- | include/human_sort.hpp | 2 | ||||
-rw-r--r-- | include/ibm/locks.hpp | 2 | ||||
-rw-r--r-- | include/ssl_key_handler.hpp | 8 |
5 files changed, 11 insertions, 11 deletions
diff --git a/include/dbus_singleton.hpp b/include/dbus_singleton.hpp index 67f57b7104..2448636a62 100644 --- a/include/dbus_singleton.hpp +++ b/include/dbus_singleton.hpp @@ -6,8 +6,8 @@ namespace crow namespace connections { -// Initialze before using! -// Please see webserver_main for the example how this variable is initialzed, +// Initialize before using! +// Please see webserver_main for the example how this variable is initialized, // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) extern sdbusplus::asio::connection* systemBus; diff --git a/include/http_utility.hpp b/include/http_utility.hpp index 4f430aeb8e..ae436caf1c 100644 --- a/include/http_utility.hpp +++ b/include/http_utility.hpp @@ -45,8 +45,8 @@ constexpr std::array<ContentTypePair, 5> contentTypes{{ }}; inline ContentType - getPreferedContentType(std::string_view header, - std::span<const ContentType> preferedOrder) + getPreferredContentType(std::string_view header, + std::span<const ContentType> preferedOrder) { size_t lastIndex = 0; while (lastIndex < header.size() + 1) @@ -103,7 +103,7 @@ inline bool isContentTypeAllowed(std::string_view header, ContentType type, bool allowWildcard) { auto types = std::to_array({type}); - ContentType allowed = getPreferedContentType(header, types); + ContentType allowed = getPreferredContentType(header, types); if (allowed == ContentType::ANY) { return allowWildcard; diff --git a/include/human_sort.hpp b/include/human_sort.hpp index fba98041d0..d248cbafdf 100644 --- a/include/human_sort.hpp +++ b/include/human_sort.hpp @@ -98,7 +98,7 @@ inline int alphanumComp(std::string_view left, std::string_view right) } // A generic template type compatible with std::less that can be used on generic -// containers (set, map, ect) +// containers (set, map, etc) template <class Type> struct AlphanumLess { diff --git a/include/ibm/locks.hpp b/include/ibm/locks.hpp index 2208aaffed..7a161fc754 100644 --- a/include/ibm/locks.hpp +++ b/include/ibm/locks.hpp @@ -379,7 +379,7 @@ inline bool Lock::isValidLockRequest(const LockRequest& refLockRecord) (static_cast<int>(std::get<4>(refLockRecord).size()) < 2)) { BMCWEB_LOG_DEBUG("Validation of Number of Segments Failed"); - BMCWEB_LOG_DEBUG("Number of Segments provied : {}", + BMCWEB_LOG_DEBUG("Number of Segments provided : {}", std::get<4>(refLockRecord).size()); return false; } diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp index f8142cf24b..5ce7cc7a41 100644 --- a/include/ssl_key_handler.hpp +++ b/include/ssl_key_handler.hpp @@ -204,7 +204,7 @@ inline X509* loadCert(const std::string& filePath) BIO* certFileBio = BIO_new_file(filePath.c_str(), "rb"); if (certFileBio == nullptr) { - BMCWEB_LOG_ERROR("Error occured during BIO_new_file call, FILE= {}", + BMCWEB_LOG_ERROR("Error occurred during BIO_new_file call, FILE= {}", filePath); return nullptr; } @@ -212,7 +212,7 @@ inline X509* loadCert(const std::string& filePath) X509* cert = X509_new(); if (cert == nullptr) { - BMCWEB_LOG_ERROR("Error occured during X509_new call, {}", + BMCWEB_LOG_ERROR("Error occurred during X509_new call, {}", ERR_get_error()); BIO_free(certFileBio); return nullptr; @@ -221,7 +221,7 @@ inline X509* loadCert(const std::string& filePath) if (PEM_read_bio_X509(certFileBio, &cert, nullptr, nullptr) == nullptr) { BMCWEB_LOG_ERROR( - "Error occured during PEM_read_bio_X509 call, FILE= {}", filePath); + "Error occurred during PEM_read_bio_X509 call, FILE= {}", filePath); BIO_free(certFileBio); X509_free(cert); @@ -266,7 +266,7 @@ inline void generateSslCertificate(const std::string& filepath, if (x509 != nullptr) { // get a random number from the RNG for the certificate serial - // number If this is not random, regenerating certs throws broswer + // number If this is not random, regenerating certs throws browser // errors bmcweb::OpenSSLGenerator gen; std::uniform_int_distribution<int> dis( |