Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions portsyncd/portsyncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,15 @@ void handlePortConfigFile(ProducerStateTable &p, string file)
{
if (line.at(0) == '#')
{
/* Find out what info is specified in the configuration file */
for (auto it = header.begin(); it != header.end();)
{
if (line.find(*it) == string::npos)
{
it = header.erase(it);
}
else
{
++it;
}
// Take this line as column header line
istringstream iss_hdr(line.substr(1));
string hdr;

header.clear();
while (! iss_hdr.eof()) {
iss_hdr >> hdr;
cout << "Adding column header '" << hdr << "'" << endl;
header.push_back(hdr);
}

continue;
Expand Down