Change yield from ptr to object
The ptr makes for ugly code:
i.e. *(ctx->yield) all over the place.
Change it to copy as it is just 4 pointers.
Tested: ipmitool mc info still works
Change-Id: I30c5bc395849875cd58925fac99bb23c1804cd5b
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/include/ipmid/message.hpp b/include/ipmid/message.hpp
index 4864f4e..0dc7ca8 100644
--- a/include/ipmid/message.hpp
+++ b/include/ipmid/message.hpp
@@ -43,7 +43,7 @@
Context(std::shared_ptr<sdbusplus::asio::connection> bus, NetFn netFn,
Cmd cmd, int channel, int userId, Privilege priv, int rqSA,
- boost::asio::yield_context* yield) :
+ boost::asio::yield_context& yield) :
bus(bus),
netFn(netFn), cmd(cmd), channel(channel), userId(userId), priv(priv),
rqSA(rqSA), yield(yield)
@@ -60,7 +60,7 @@
// srcAddr is only set on IPMB requests because
// Platform Event Message needs it to determine the incoming format
int rqSA;
- boost::asio::yield_context* yield;
+ boost::asio::yield_context yield;
};
namespace message