Spelling fixes
Spelling errors found using github.com/lucasdemarchi/codespell
A tool to fix common misspellings.
This tool is licensed under GNU General Public License, version 2.
Change-Id: I8da47d0cc4531fe83cf09ed311bea35014f05659
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/snmp_conf_manager.cpp b/snmp_conf_manager.cpp
index 831fd4b..d2d5d8f 100644
--- a/snmp_conf_manager.cpp
+++ b/snmp_conf_manager.cpp
@@ -87,7 +87,7 @@
// remove the persistent file
fs::path fileName = dbusPersistentLocation;
fileName /=
- it->second->address() + SEPRATOR + std::to_string(it->second->port());
+ it->second->address() + SEPARATOR + std::to_string(it->second->port());
if (fs::exists(fileName))
{
@@ -124,7 +124,7 @@
}
auto managerID = confFile.path().filename().string();
- auto pos = managerID.find(SEPRATOR);
+ auto pos = managerID.find(SEPARATOR);
auto ipaddress = managerID.substr(0, pos);
auto port_str = managerID.substr(pos + 1);
uint16_t port = stoi(port_str, nullptr);
diff --git a/snmp_serialize.cpp b/snmp_serialize.cpp
index ea47945..2bc8f84 100644
--- a/snmp_serialize.cpp
+++ b/snmp_serialize.cpp
@@ -60,7 +60,7 @@
fs::create_directories(dir);
auto address = manager.address();
auto port = manager.port();
- fileName /= address + SEPRATOR + std::to_string(port);
+ fileName /= address + SEPARATOR + std::to_string(port);
std::ofstream os(fileName.string(), std::ios::binary);
cereal::BinaryOutputArchive oarchive(os);
diff --git a/snmp_serialize.hpp b/snmp_serialize.hpp
index 044d784..2031e22 100644
--- a/snmp_serialize.hpp
+++ b/snmp_serialize.hpp
@@ -10,7 +10,7 @@
namespace snmp
{
-constexpr auto SEPRATOR = "_";
+constexpr auto SEPARATOR = "_";
namespace fs = std::experimental::filesystem;