diff options
author | Yong Li <yong.b.li@linux.intel.com> | 2018-12-07 11:11:58 +0300 |
---|---|---|
committer | Yong Li <yong.b.li@linux.intel.com> | 2018-12-07 17:24:15 +0300 |
commit | f2922ad3b614f5ff0b99ae0e8f1fd482212e0856 (patch) | |
tree | 98ef8af0b162de3a2da136eb129a38b818f70a60 /gpiodaemon | |
parent | d350bd86f543fc28e098bcbffd39cec28e4d4f9f (diff) | |
download | provingground-f2922ad3b614f5ff0b99ae0e8f1fd482212e0856.tar.xz |
Fix build error with the latest sdbusplus variant change
Enable C++ 17 and modify the code to align with the below commit:
https://github.com/openbmc/sdbusplus/commit/90778b430290c9ec8c33fb77b03e2552d9dd6905
Change-Id: If405f03494f66dd9addc407e1d0b0c38f438a2c5
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Diffstat (limited to 'gpiodaemon')
-rw-r--r-- | gpiodaemon/src/gpiodaemon.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gpiodaemon/src/gpiodaemon.cpp b/gpiodaemon/src/gpiodaemon.cpp index df5ebe4..633d782 100644 --- a/gpiodaemon/src/gpiodaemon.cpp +++ b/gpiodaemon/src/gpiodaemon.cpp @@ -66,10 +66,14 @@ void GpioManager::addObject(std::string path) return; } - uint64_t index = indexFind->second.get<uint64_t>(); - std::string gpioName = nameFind->second.get<std::string>(); + uint64_t index = sdbusplus::message::variant_ns::get<uint64_t>( + indexFind->second); + std::string gpioName = + sdbusplus::message::variant_ns::get<std::string>( + nameFind->second); bool inverted = - polarityFind->second.get<std::string>() == "Low"; + sdbusplus::message::variant_ns::get<std::string>( + polarityFind->second) == "Low"; boost::replace_all(gpioName, " ", "_"); |