Fix build
ctx moved away from being a ptr
tested: it builds
Change-Id: I39f99729a6e44c544178e9e2b28edcfd8a4551fb
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/oemcommands.cpp b/src/oemcommands.cpp
index d360b2b..a101da0 100644
--- a/src/oemcommands.cpp
+++ b/src/oemcommands.cpp
@@ -1846,7 +1846,7 @@
{
boost::system::error_code ec;
ctx->bus->yield_method_call<void>(
- *(ctx->yield), ec, "xyz.openbmc_project.Settings",
+ ctx->yield, ec, "xyz.openbmc_project.Settings",
"/xyz/openbmc_project/control/power_supply_redundancy",
"org.freedesktop.DBus.Properties", "Set",
"xyz.openbmc_project.Control.PowerSupplyRedundancy", property, value);
@@ -1866,7 +1866,7 @@
{
boost::system::error_code ec;
value = ctx->bus->yield_method_call<crConfigVariant>(
- *(ctx->yield), ec, "xyz.openbmc_project.Settings",
+ ctx->yield, ec, "xyz.openbmc_project.Settings",
"/xyz/openbmc_project/control/power_supply_redundancy",
"org.freedesktop.DBus.Properties", "Get",
"xyz.openbmc_project.Control.PowerSupplyRedundancy", property);
@@ -2483,7 +2483,7 @@
boost::system::error_code ec;
auto varRestrMode = ctx->bus->yield_method_call<std::variant<std::string>>(
- *ctx->yield, ec, restricionModeService, restricionModeBasePath,
+ ctx->yield, ec, restricionModeService, restricionModeBasePath,
dBusPropertyIntf, dBusPropertyGetMethod, restricionModeIntf,
restricionModeProperty);
if (ec)
@@ -2497,7 +2497,7 @@
securityNameSpace::RestrictionMode::convertModesFromString(
std::get<std::string>(varRestrMode)));
auto varSpecialMode = ctx->bus->yield_method_call<std::variant<uint8_t>>(
- *ctx->yield, ec, specialModeService, specialModeBasePath,
+ ctx->yield, ec, specialModeService, specialModeBasePath,
dBusPropertyIntf, dBusPropertyGetMethod, specialModeIntf,
specialModeProperty);
if (ec)
@@ -2549,7 +2549,7 @@
boost::system::error_code ec;
auto varRestrMode = ctx->bus->yield_method_call<std::variant<std::string>>(
- *ctx->yield, ec, restricionModeService, restricionModeBasePath,
+ ctx->yield, ec, restricionModeService, restricionModeBasePath,
dBusPropertyIntf, dBusPropertyGetMethod, restricionModeIntf,
restricionModeProperty);
if (ec)
@@ -2578,7 +2578,7 @@
ec.clear();
ctx->bus->yield_method_call<>(
- *ctx->yield, ec, restricionModeService, restricionModeBasePath,
+ ctx->yield, ec, restricionModeService, restricionModeBasePath,
dBusPropertyIntf, dBusPropertySetMethod, restricionModeIntf,
restricionModeProperty,
static_cast<std::variant<std::string>>(