Fix build Failures in postcode handler.
Fixed the build compilation issues in the postcode handler function
after the latest updates in the master.
TESTED : Built Facebook YosemiteV2 images and loaded on the target hardware.
Verified all the host's postcodes in BMC.
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I8019d68c471f1c1123fa2f3fc071b0339032f0f6
diff --git a/src/biccommands.cpp b/src/biccommands.cpp
index ee1bddb..017690c 100644
--- a/src/biccommands.cpp
+++ b/src/biccommands.cpp
@@ -84,7 +84,7 @@
using postcode_t = std::tuple<uint64_t, std::vector<uint8_t>>;
uint64_t primaryPostCode = static_cast<uint64_t>(data);
- postcode_t postCode = std::make_tuple(primaryPostCode, {});
+ auto postCode = postcode_t(primaryPostCode, {});
// creating dbus objects for 1 to N process
std::string dbusObjStr = dbusObj + std::to_string((ctx->hostIdx + 1));
@@ -95,7 +95,7 @@
"org.freedesktop.DBus.Properties", "Set");
// Adding paramters to method call
- method.append(dbusService, "Value", std::variant<postcode_t> postCode);
+ method.append(dbusService, "Value", std::variant<postcode_t>(postCode));
// Invoke method call function
auto reply = conn->call(method);