asio: Align nop_set_value to return conventions
Set handlers should return boolean values, as documented in asio.md
Change-Id: I8db7ea127c8f5a8e086dc38fd4b8df3fe3162e6f
Signed-off-by: Jonathan Doman <jonathan.doman@intel.com>
diff --git a/include/sdbusplus/asio/object_server.hpp b/include/sdbusplus/asio/object_server.hpp
index 8c5f17e..57dcc95 100644
--- a/include/sdbusplus/asio/object_server.hpp
+++ b/include/sdbusplus/asio/object_server.hpp
@@ -149,10 +149,10 @@
}
template <typename PropertyType>
-int nop_set_value(const PropertyType& req, PropertyType& old)
+bool nop_set_value(const PropertyType& req, PropertyType& old)
{
old = req;
- return 1;
+ return true;
}
} // namespace details