clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I73acd9daf41b52bcc3f6af9a1c38c5f162ae76b2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/IntrusionSensorMain.cpp b/src/IntrusionSensorMain.cpp
index dda9b6f..4566b08 100644
--- a/src/IntrusionSensorMain.cpp
+++ b/src/IntrusionSensorMain.cpp
@@ -237,8 +237,7 @@
const std::shared_ptr<sdbusplus::asio::connection>& dbusConnection)
{
auto getter = std::make_shared<GetSensorConfiguration>(
- dbusConnection,
- [](const ManagedObjectType& sensorConfigurations) {
+ dbusConnection, [](const ManagedObjectType& sensorConfigurations) {
// Get NIC name and save to map
lanInfoMap.clear();
for (const auto& [path, cfgData] : sensorConfigurations)
@@ -279,7 +278,7 @@
{
std::cerr << "can't find matched NIC name. \n";
}
- });
+ });
getter->getConfiguration(
std::vector<std::string>{nicTypes.begin(), nicTypes.end()});
@@ -459,7 +458,7 @@
<< (isLanConnected ? "true" : "false") << "\n";
}
lanStatusMap[ethNum] = isLanConnected;
- },
+ },
"org.freedesktop.network1",
"/org/freedesktop/network1/link/_" + pathSuffix,
"org.freedesktop.DBus.Properties", "Get",
@@ -525,7 +524,7 @@
return;
}
getNicNameInfo(systemBus);
- });
+ });
}
io.run();