Skip to content

Commit af01f37

Browse files
spell check fixes (#456)
1 parent 7afd43d commit af01f37

19 files changed

+24
-24
lines changed

common/configdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ void ConfigDBPipeConnector_Native::mod_config(const map<string, map<string, map<
382382
// cursor: position to start scanning from
383383
//
384384
// Returns:
385-
// cur: poition of next item to scan
385+
// cur: position of next item to scan
386386
int ConfigDBPipeConnector_Native::_get_config(DBConnector& client, RedisTransactioner& pipe, map<string, map<string, map<string, string>>>& data, int cursor)
387387
{
388388
auto const& rc = client.scan(cursor, "*", REDIS_SCAN_BATCH_SIZE);

common/dbconnector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ DBConnector::DBConnector(const string& dbName, unsigned int timeout, bool isTcpC
566566
DBConnector::DBConnector(const string& dbName, unsigned int timeout, bool isTcpConn)
567567
: DBConnector(dbName, timeout, isTcpConn, EMPTY_NAMESPACE)
568568
{
569-
// Empty contructor
569+
// Empty constructor
570570
}
571571

572572
int DBConnector::getDbId() const

common/dbconnector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class DBConnector : public RedisContext
181181
#ifdef SWIG
182182
// SWIG interface file (.i) globally rename map C++ `del` to python `delete`,
183183
// but applications already followed the old behavior of auto renamed `_del`.
184-
// So we implemented old behavior for backward compatiblity
184+
// So we implemented old behavior for backward compatibility
185185
// TODO: remove this function after applications use the function name `delete`
186186
%pythoncode %{
187187
def _del(self, *args, **kwargs):

common/json.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class JSon
5252
fs: the input ifstream representing the json file
5353
fv: the output vector
5454
return: boolean
55-
True: the input json file has been succefully parsed
55+
True: the input json file has been successfully parsed
5656
False: there are some errors found
5757
*/
5858
static bool loadJsonFromFile(std::ifstream &fs, std::vector<KeyOpFieldsValuesTuple> &db_items);

common/netdispatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void NetDispatcher::registerMessageHandler(int nlmsg_type, NetMsg *callback)
1818
MUTEX;
1919

2020
if (m_handlers.find(nlmsg_type) != m_handlers.end())
21-
throw "Trying to register on already registerd netlink message";
21+
throw "Trying to register on already registered netlink message";
2222

2323
m_handlers[nlmsg_type] = callback;
2424
}

common/netdispatcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace swss
1313
{
1414
public:
1515

16-
/** Get singlton instance. */
16+
/** Get singleton instance. */
1717
static NetDispatcher& getInstance();
1818

1919
/**

common/netlink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ uint64_t NetLink::readData()
9090
if (err < 0)
9191
{
9292
if (err == -NLE_NOMEM)
93-
SWSS_LOG_ERROR("netlink reports out of memory on reading a netlink socket. High possiblity of a lost message");
93+
SWSS_LOG_ERROR("netlink reports out of memory on reading a netlink socket. High possibility of a lost message");
9494
else if (err == -NLE_AGAIN)
9595
SWSS_LOG_DEBUG("netlink reports NLE_AGAIN on reading a netlink socket");
9696
else

common/nfnetlink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ uint64_t NfNetlink::readData()
134134
if (err < 0)
135135
{
136136
if (err == -NLE_NOMEM)
137-
SWSS_LOG_ERROR("netlink reports out of memory on reading a netfilter netlink socket. High possiblity of a lost message");
137+
SWSS_LOG_ERROR("netlink reports out of memory on reading a netfilter netlink socket. High possibility of a lost message");
138138
else if (err == -NLE_AGAIN)
139139
SWSS_LOG_DEBUG("netlink reports NLE_AGAIN on reading a netfilter netlink socket");
140140
else

common/producerstatetable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ProducerStateTable : public TableBase, public TableName_KeySet
2727
#ifdef SWIG
2828
// SWIG interface file (.i) globally rename map C++ `del` to python `delete`,
2929
// but applications already followed the old behavior of auto renamed `_del`.
30-
// So we implemented old behavior for backward compatiblity
30+
// So we implemented old behavior for backward compatibility
3131
// TODO: remove this function after applications use the function name `delete`
3232
%pythoncode %{
3333
def _del(self, *args, **kwargs):

common/producertable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ProducerTable : public TableBase, public TableName_KeyValueOpQueues
3838
#ifdef SWIG
3939
// SWIG interface file (.i) globally rename map C++ `del` to python `delete`,
4040
// but applications already followed the old behavior of auto renamed `_del`.
41-
// So we implemented old behavior for backward compatiblity
41+
// So we implemented old behavior for backward compatibility
4242
// TODO: remove this function after applications use the function name `delete`
4343
%pythoncode %{
4444
def _del(self, *args, **kwargs):

0 commit comments

Comments
 (0)