From: Romain Forlot Date: Wed, 26 Apr 2017 16:23:10 +0000 (+0200) Subject: Fix: Reading doesn't update receiving object values X-Git-Tag: 3.99.1~123 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=94022218f9212c7c59284a8bff4b9c47f5f9b351;p=apps%2Flow-level-can-service.git Fix: Reading doesn't update receiving object values Wrong signature using const argument with the obj receiving the read Change-Id: I0c5b8a3c974f0bd140823f8ce88aa2cbd451e543 Signed-off-by: Romain Forlot --- diff --git a/CAN-binder/low-can-binding/utils/socketcan.cpp b/CAN-binder/low-can-binding/utils/socketcan.cpp index c550f6e..3385f0c 100644 --- a/CAN-binder/low-can-binding/utils/socketcan.cpp +++ b/CAN-binder/low-can-binding/utils/socketcan.cpp @@ -138,7 +138,7 @@ namespace utils return socket_; } - socketcan_t& operator>>(socketcan_t& s, const can_message_t& cm) + socketcan_t& operator>>(socketcan_t& s, can_message_t& cm) { struct { struct bcm_msg_head msg_head; diff --git a/CAN-binder/low-can-binding/utils/socketcan.hpp b/CAN-binder/low-can-binding/utils/socketcan.hpp index 673303b..cc7326e 100644 --- a/CAN-binder/low-can-binding/utils/socketcan.hpp +++ b/CAN-binder/low-can-binding/utils/socketcan.hpp @@ -78,5 +78,5 @@ namespace utils socketcan_t& operator<<(socketcan_t& s, const struct basic_bcm_msg& obj); socketcan_t& operator<<(socketcan_t& s, const struct canfd_bcm_msg& obj); - socketcan_t& operator>>(socketcan_t& s, const can_message_t& cm); + socketcan_t& operator>>(socketcan_t& s, can_message_t& cm); }