summaryrefslogtreecommitdiffstats
path: root/storagehandler.cpp
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2019-04-09 11:44:36 -0700
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-04-18 22:40:32 +0000
commitf442e119aed2dc87f320bf230ad39e7dc5c72524 (patch)
treefe834d199e48249934b3c84aa92db536aea3ef25 /storagehandler.cpp
parent5b2535f89023d0ea220ccc24200a9b51c142c08d (diff)
downloadphosphor-host-ipmid-master.zip
phosphor-host-ipmid-master.tar.gz
move variant to std namespaceHEADmaster
sdbusplus::message::variant_ns has been std for a while now. This moves ipmid away from sdbusplus::message::variant_ns to directly use std::variant. Tested-by: built, compiles, and runs the same as before. Change-Id: I8caa945f31c926c2721319f001b9d7f83fd3f1b7 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'storagehandler.cpp')
-rw-r--r--storagehandler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/storagehandler.cpp b/storagehandler.cpp
index 18f1357..c225279 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -62,8 +62,6 @@ 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;
@@ -522,7 +520,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 = variant_ns::get<uint64_t>(value);
+ host_time_usec = std::get<uint64_t>(value);
}
catch (InternalFailure& e)
{
OpenPOWER on IntegriCloud