summaryrefslogtreecommitdiff
path: root/redfish-core/lib
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2022-11-26 18:41:59 +0300
committerEd Tanous <ed@tanous.net>2022-11-28 20:57:59 +0300
commit5b3785464cb8a43dc6ab763789bb722bdc634ebc (patch)
tree1f136ed160d3a7af4f8a1dde080910d869a4317c /redfish-core/lib
parent973c1355f161c4f71d7c5e3e2016cc86881b73fa (diff)
downloadbmcweb-5b3785464cb8a43dc6ab763789bb722bdc634ebc.tar.xz
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>
Diffstat (limited to 'redfish-core/lib')
-rw-r--r--redfish-core/lib/ethernet.hpp2
-rw-r--r--redfish-core/lib/log_services.hpp9
2 files changed, 5 insertions, 6 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index 804d8aa407..e05cb6b5ce 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -1040,7 +1040,7 @@ inline void
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 92954861d6..33440fb1e2 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -767,7 +767,7 @@ inline void createDumpTaskCallback(
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 @@ inline void createDump(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
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;