summaryrefslogtreecommitdiffstats
path: root/src/can-signals.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-02-23 14:09:30 +0000
committerRomain Forlot <romain.forlot@iot.bzh>2017-02-23 14:09:30 +0000
commitd59970dce571c1753174124326406ec1ff8e2ce8 (patch)
tree9d58203f97dc15353502f49a401fca383b00dd35 /src/can-signals.cpp
parentb0975e4bfa534153657a7ee8acaee0f950056e97 (diff)
Make binder_interface global variable rather than
pass it over and over through class and functions Change-Id: Ie32d44126a41125c6c45d18663b668328df44e2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-signals.cpp')
-rw-r--r--src/can-signals.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/can-signals.cpp b/src/can-signals.cpp
index ee682f9..2cf4b03 100644
--- a/src/can-signals.cpp
+++ b/src/can-signals.cpp
@@ -35,7 +35,7 @@ size_t getSignalCount()
return SIGNALS[MESSAGE_SET_ID].size();
}
-std::vector<CanSignal> find_can_signals(const struct afb_binding_interface* interface, openxc_DynamicField& key)
+std::vector<CanSignal> find_can_signals(openxc_DynamicField& key)
{
std::vector<CanSignal> signals;
@@ -57,7 +57,7 @@ std::vector<CanSignal> find_can_signals(const struct afb_binding_interface* inte
}
break;
default:
- ERROR(interface, "find_can_signals: wrong openxc_DynamicField specified. Use openxc_DynamicField_Type_NUM or openxc_DynamicField_Type_STRING type only.");
+ ERROR(binder_interface, "find_can_signals: wrong openxc_DynamicField specified. Use openxc_DynamicField_Type_NUM or openxc_DynamicField_Type_STRING type only.");
CanSignal cs;
::memset(&cs, 0, sizeof(CanSignal));
signals.push_back(cs);