sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t
Change-Id: I4af62f309f4cd3bb51759fa18de2448235e557fe
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index 804d8aa..e05cb6b 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -1040,7 +1040,7 @@
crow::connections::systemBus->async_method_call(
[asyncResp, macAddress](const boost::system::error_code ec,
- const sdbusplus::message::message& msg) {
+ const sdbusplus::message_t& msg) {
if (ec)
{
const sd_bus_error* err = msg.get_error();
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index 9295486..33440fb 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -767,7 +767,7 @@
std::shared_ptr<task::TaskData> task = task::TaskData::createTask(
[createdObjPath, dumpEntryPath, dumpId, isProgressIntfPresent](
- boost::system::error_code err, sdbusplus::message::message& msg,
+ boost::system::error_code err, sdbusplus::message_t& msg,
const std::shared_ptr<task::TaskData>& taskData) {
if (err)
{
@@ -898,10 +898,9 @@
createDumpParamVec;
crow::connections::systemBus->async_method_call(
- [asyncResp, payload(task::Payload(req)),
- dumpPath](const boost::system::error_code ec,
- const sdbusplus::message::message& msg,
- const sdbusplus::message::object_path& objPath) mutable {
+ [asyncResp, payload(task::Payload(req)), dumpPath](
+ const boost::system::error_code ec, const sdbusplus::message_t& msg,
+ const sdbusplus::message::object_path& objPath) mutable {
if (ec)
{
BMCWEB_LOG_ERROR << "CreateDump resp_handler got error " << ec;