diff options
-rw-r--r-- | host-cmd-manager.cpp | 4 | ||||
-rw-r--r-- | host-cmd-manager.hpp | 2 | ||||
-rw-r--r-- | ipmid.cpp | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/host-cmd-manager.cpp b/host-cmd-manager.cpp index 28bcb70..0a61e63 100644 --- a/host-cmd-manager.cpp +++ b/host-cmd-manager.cpp @@ -35,8 +35,8 @@ using InternalFailure = namespace sdbusRule = sdbusplus::bus::match::rules; namespace variant_ns = sdbusplus::message::variant_ns; -Manager::Manager(sdbusplus::bus::bus& bus, sd_event* event) : - bus(bus), timer(event, std::bind(&Manager::hostTimeout, this)), +Manager::Manager(sdbusplus::bus::bus& bus) : + bus(bus), timer(std::bind(&Manager::hostTimeout, this)), hostTransitionMatch( bus, sdbusRule::propertiesChanged(HOST_STATE_PATH, HOST_STATE_INTERFACE), diff --git a/host-cmd-manager.hpp b/host-cmd-manager.hpp index 9a5891c..6b56122 100644 --- a/host-cmd-manager.hpp +++ b/host-cmd-manager.hpp @@ -32,7 +32,7 @@ class Manager * @param[in] bus - dbus handler * @param[in] event - pointer to sd_event */ - Manager(sdbusplus::bus::bus& bus, sd_event* event); + explicit Manager(sdbusplus::bus::bus& bus); /** @brief Extracts the next entry in the queue and returns * Command and data part of it. @@ -656,8 +656,7 @@ int main(int argc, char* argv[]) sdbusp = std::make_unique<sdbusplus::bus::bus>(bus); sdbusp->request_name("xyz.openbmc_project.Ipmi.Host"); - cmdManager = - std::make_unique<phosphor::host::command::Manager>(*sdbusp, events); + cmdManager = std::make_unique<phosphor::host::command::Manager>(*sdbusp); // Activate OemRouter. oem::mutableRouter()->activate(); |