diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-27 00:53:30 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-27 01:03:34 +0200 |
commit | 14043c56960ced9141ef107c66a6a041a75f6cb3 (patch) | |
tree | 2997530e758d90ff6c48cb87a2c389064a6153c8 /CAN-binder/low-can-binding/can/can-bus.cpp | |
parent | 45dd042f924236be04d4e4292de111f80a004060 (diff) |
Typo, rename, format
Change-Id: I8250ef78f0b540617bd249873250f62ad6361fdf
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/can/can-bus.cpp')
-rw-r--r-- | CAN-binder/low-can-binding/can/can-bus.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/CAN-binder/low-can-binding/can/can-bus.cpp b/CAN-binder/low-can-binding/can/can-bus.cpp index 6665744..6e74b86 100644 --- a/CAN-binder/low-can-binding/can/can-bus.cpp +++ b/CAN-binder/low-can-binding/can/can-bus.cpp @@ -15,14 +15,15 @@ * limitations under the License. */ -#include <map> -#include <cerrno> -#include <vector> -#include <string> #include <net/if.h> #include <sys/socket.h> #include <json-c/json.h> #include <linux/can/raw.h> +#include <map> +#include <cerrno> +#include <vector> +#include <string> +#include <algorithm> #include "can-bus.hpp" @@ -337,7 +338,7 @@ void can_bus_t::push_new_vehicle_message(const openxc_VehicleMessage& v_msg) /// @brief Create a RX_SETUP receive job for the BCM socket of a CAN signal. /// -/// @return 0 if ok. +/// @return 0 if ok -1 if not. int can_bus_t::create_rx_filter(const can_signal_t& s) { const std::string& bus = s.get_message().get_bus_name(); |