Smalls improvements 57/18757/3
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 7 Dec 2018 16:17:43 +0000 (17:17 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 14 Dec 2018 08:59:54 +0000 (08:59 +0000)
commit97a08a7e37835f0e8619d22c83243bee26a2bff2
tree66a44a6c977c9fe16311ec031204cb82aa84e6ca
parente190b7b3069d86fce25831c366bb0cd3fa615289
Smalls improvements

- Improve robustness reading a BCM socket
  Adding checks on system calls and remove the initialization of the
  struct that will hold the received message, not so much needed in
  that case.
- More accurate log message at subscription/unsubscription step whether
  this is a FD CAN messages or not and if this a subscription or an
  unsubscription that is requested.
- Initialize the full struct of vehicle message to avoid memory warning
  about conditionnal jump based on uninitialized bytes.
- Memleak: Free raw pointer on active diagnostic requests

Change-Id: I4bbf4d851c0fa1efdb6fa6034fac3d1dcafa1a73
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/binding/low-can-cb.cpp
low-can-binding/can/can-bus.cpp
low-can-binding/diagnostic/diagnostic-manager.cpp
low-can-binding/utils/openxc-utils.cpp
low-can-binding/utils/socketcan-bcm.cpp