diff options
Diffstat (limited to 'redfish-core/lib/redfish_util.hpp')
-rw-r--r-- | redfish-core/lib/redfish_util.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/redfish_util.hpp b/redfish-core/lib/redfish_util.hpp index d7a7f8cb90..9d358c02cf 100644 --- a/redfish-core/lib/redfish_util.hpp +++ b/redfish-core/lib/redfish_util.hpp @@ -102,7 +102,7 @@ void getPortStatusAndPath(const std::string& serviceName, { crow::connections::systemBus->async_method_call( [serviceName, callback{std::forward<CallbackFunc>(callback)}]( - const boost::system::error_code ec, + const boost::system::error_code& ec, const std::vector<UnitStruct>& r) { if (ec) { @@ -180,7 +180,7 @@ void getPortNumber(const std::string& socketPath, CallbackFunc&& callback) *crow::connections::systemBus, "org.freedesktop.systemd1", socketPath, "org.freedesktop.systemd1.Socket", "Listen", [callback{std::forward<CallbackFunc>(callback)}]( - const boost::system::error_code ec, + const boost::system::error_code& ec, const std::vector<std::tuple<std::string, std::string>>& resp) { if (ec) { |