use unpack syntax
Rather than defining a variable and then reading it from a message,
we also supports directly unpack-ing from the message. Use this
syntax instead as it is more efficient and succinct.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I2ce2aa3e6a43d8866ba9b3920dd3165b7b6b9f6e
diff --git a/test/message/call.cpp b/test/message/call.cpp
index 4cd82ac..376d128 100644
--- a/test/message/call.cpp
+++ b/test/message/call.cpp
@@ -28,8 +28,8 @@
std::string syncBusId(bus_t& b)
{
- std::string ret;
- newBusIdReq(b).call().read(ret);
+ auto ret = newBusIdReq(b).call().unpack<std::string>();
+
return ret;
}