sdbusplus: avoid deprecated phosphor::Timer
sdbusplus had an older type named `phosphor::Timer` which was
recently renamed to `sdbusplus::Timer`. Update the code to use
the new type alias.
Change-Id: I694f0624eae2cdbb071ab97fe019cd5684615541
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/include/manufacturingcommands.hpp b/include/manufacturingcommands.hpp
index 07e0a5a..f8eae09 100644
--- a/include/manufacturingcommands.hpp
+++ b/include/manufacturingcommands.hpp
@@ -329,7 +329,7 @@
bool revertFanPWM = false;
bool revertLedCallback = false;
- phosphor::Timer revertTimer;
+ sdbusplus::Timer revertTimer;
int mtmTestBeepFd = -1;
};
diff --git a/include/smbiosmdrv2handler.hpp b/include/smbiosmdrv2handler.hpp
index 7fd6f55..99e6bb6 100644
--- a/include/smbiosmdrv2handler.hpp
+++ b/include/smbiosmdrv2handler.hpp
@@ -256,7 +256,7 @@
MDRV2()
{
timer =
- std::make_unique<phosphor::Timer>([&](void) { timeoutHandler(); });
+ std::make_unique<sdbusplus::Timer>([&](void) { timeoutHandler(); });
}
int agentLookup(const uint16_t& agentId);
@@ -311,7 +311,7 @@
smbiosTableStorageSize,
smbiosTableStorage}};
std::unique_ptr<SharedMemoryArea> area;
- std::unique_ptr<phosphor::Timer> timer;
+ std::unique_ptr<sdbusplus::Timer> timer;
private:
uint8_t lockIndex = 0;