summaryrefslogtreecommitdiffstats
path: root/src/low-can-binding.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/low-can-binding.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/low-can-binding.cpp')
-rw-r--r--src/low-can-binding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/low-can-binding.cpp b/src/low-can-binding.cpp
index 87c94d54..9e344018 100644
--- a/src/low-can-binding.cpp
+++ b/src/low-can-binding.cpp
@@ -136,7 +136,7 @@ static int subscribe_unsubscribe_name(struct afb_req request, bool subscribe, co
else
{
openxc_DynamicField search_key = build_DynamicField(name);
- sig = find_can_signals(binder_interface, search_key);
+ sig = find_can_signals(search_key);
if (sig.empty())
ret = 0;
}
@@ -221,7 +221,7 @@ extern "C"
fd_conf = afb_daemon_rootdir_open_locale(binder_interface->daemon, "can_bus.json", O_RDONLY, NULL);
/* Open CAN socket */
- can_bus_t can_bus_handler(binder_interface, fd_conf);
+ can_bus_t can_bus_handler(fd_conf);
if(can_bus_handler.init_can_dev() == 0)
{
can_bus_handler.start_threads();