diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2022-07-23 03:26:55 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-07-25 06:27:22 +0300 |
commit | 59d494ee9608850f17bd7f4644838c26daab2669 (patch) | |
tree | 80baf245361db6eb78181e782e79e1ab6da095a9 /redfish-core/lib/certificate_service.hpp | |
parent | d5c80ad9c07b94465d8ea62d2b6f87c30cac765e (diff) | |
download | bmcweb-59d494ee9608850f17bd7f4644838c26daab2669.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
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I46a5eec210002af84239af74a93c830b1d4a13f1
Diffstat (limited to 'redfish-core/lib/certificate_service.hpp')
-rw-r--r-- | redfish-core/lib/certificate_service.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp index c2c873d6b9..22d77a728b 100644 --- a/redfish-core/lib/certificate_service.hpp +++ b/redfish-core/lib/certificate_service.hpp @@ -199,7 +199,7 @@ class CertificateFile std::filesystem::path certDirectory; }; -static std::unique_ptr<sdbusplus::bus::match::match> csrMatcher; +static std::unique_ptr<sdbusplus::bus::match_t> csrMatcher; /** * @brief Read data from CSR D-bus object and set to response * @@ -441,10 +441,9 @@ inline void requestRoutesCertificateActionGenerateCSR(App& app) objectPath + "'," "member='InterfacesAdded'"); - csrMatcher = std::make_unique<sdbusplus::bus::match::match>( + csrMatcher = std::make_unique<sdbusplus::bus::match_t>( *crow::connections::systemBus, match, - [asyncResp, service, objectPath, - certURI](sdbusplus::message::message& m) { + [asyncResp, service, objectPath, certURI](sdbusplus::message_t& m) { timeout.cancel(); if (m.is_method_error()) { |