Skip to content

Commit

Permalink
[portsorch]: Rename confusing variable names (sonic-net#339)
Browse files Browse the repository at this point in the history
Rename vector -> tuples since vector is a keyword.

Signed-off-by: Shu0T1an ChenG <[email protected]>
  • Loading branch information
Shuotian Cheng authored Oct 5, 2017
1 parent 5dd5e36 commit dc26aa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,10 @@ void PortsOrch::updateDbPortOperStatus(sai_object_id_t id, sai_port_oper_status_
{
if (it->second.m_port_id == id)
{
vector<FieldValueTuple> vector;
vector<FieldValueTuple> tuples;
FieldValueTuple tuple("oper_status", oper_status_strings.at(status));
vector.push_back(tuple);
m_portTable->set(it->first, vector);
tuples.push_back(tuple);
m_portTable->set(it->first, tuples);
}
}
}
Expand Down

0 comments on commit dc26aa6

Please sign in to comment.