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: If6caa27a8c0597732050487d30ab4e8f7a05caaa
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/watchdog/watchdog_dbus.cpp b/watchdog/watchdog_dbus.cpp
index fb911eb..0ff0dbb 100644
--- a/watchdog/watchdog_dbus.cpp
+++ b/watchdog/watchdog_dbus.cpp
@@ -137,7 +137,7 @@
constexpr auto extended = "org.freedesktop.DBus.Properties";
constexpr auto function = "Get";
- sdbusplus::message::message method;
+ sdbusplus::message_t method;
if (0 == dbusMethod(path, interface, function, method, extended))
{
@@ -157,7 +157,7 @@
return true;
}
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
log<level::ERR>(
fmt::format("Failed to read CurrentHostState property ({})",