diff options
Diffstat (limited to 'storagehandler.cpp')
-rw-r--r-- | storagehandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storagehandler.cpp b/storagehandler.cpp index 0a46b83..5ac116c 100644 --- a/storagehandler.cpp +++ b/storagehandler.cpp @@ -18,6 +18,7 @@ #include <cstring> #include <phosphor-logging/elog-errors.hpp> #include <phosphor-logging/log.hpp> +#include <sdbusplus/message/types.hpp> #include <sdbusplus/server.hpp> #include <string> #include <xyz/openbmc_project/Common/error.hpp> @@ -73,6 +74,8 @@ ipmi::sel::ObjectPaths paths; } // namespace cache +namespace variant_ns = sdbusplus::message::variant_ns; + using InternalFailure = sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure; using namespace phosphor::logging; @@ -501,7 +504,7 @@ ipmi_ret_t ipmi_storage_get_sel_time(ipmi_netfn_t netfn, ipmi_cmd_t cmd, return IPMI_CC_UNSPECIFIED_ERROR; } reply.read(value); - host_time_usec = value.get<uint64_t>(); + host_time_usec = variant_ns::get<uint64_t>(value); } catch (InternalFailure& e) { |