diff options
| author | Patrick Williams <patrick@stwcx.xyz> | 2016-09-09 09:36:55 -0500 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2016-09-12 21:54:52 -0500 |
| commit | 13b97c527d0df89a03c4efbe7644e25aa4f4efbd (patch) | |
| tree | 84ebb836c1dfdfd486a5d23f343f5cb9aa10a1c9 | |
| parent | 07e1d6f350370c678419ca2a5fb8b18bf3d8ee67 (diff) | |
| download | sdbusplus-13b97c527d0df89a03c4efbe7644e25aa4f4efbd.tar.gz sdbusplus-13b97c527d0df89a03c4efbe7644e25aa4f4efbd.zip | |
bus::process: use message::message
Change-Id: I00f913695d0db75a07d1b0520f507ee7dc469129
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
| -rw-r--r-- | sdbusplus/bus.hpp | 2 | ||||
| -rw-r--r-- | test/message/append.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sdbusplus/bus.hpp b/sdbusplus/bus.hpp index 168099c..3e4ea25 100644 --- a/sdbusplus/bus.hpp +++ b/sdbusplus/bus.hpp @@ -80,7 +80,7 @@ struct bus sd_bus_message* m = nullptr; sd_bus_process(_bus.get(), &m); - return m; + return message::message(m); } /** @brief Claim a service name on the dbus. diff --git a/test/message/append.cpp b/test/message/append.cpp index 836c8ae..4413910 100644 --- a/test/message/append.cpp +++ b/test/message/append.cpp @@ -31,7 +31,7 @@ void* server(void* b) while(1) { // Wait for messages. - sd_bus_message *m = bus.process(); + auto m = bus.process().release(); if(m == nullptr) { |

