From 94022218f9212c7c59284a8bff4b9c47f5f9b351 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 26 Apr 2017 18:23:10 +0200 Subject: 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 --- CAN-binder/low-can-binding/utils/socketcan.cpp | 2 +- CAN-binder/low-can-binding/utils/socketcan.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'CAN-binder') 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); } -- cgit 1.2.3-korg