diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-03 13:29:07 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-03 13:29:07 +0200 |
commit | 82642e99f93cc62329f34a5f7b3656a5331f1c43 (patch) | |
tree | 483143a8930000fcbc894358c16b8e132bd45c16 /CAN-binder/low-can-binding/utils | |
parent | b9e1b4435a406a8a27c078ea05dee1240e51704a (diff) |
Use the private method instead of direct C syscall.
Change-Id: I1c0e04e38fec92dee167720c3128a7493d4cf9b2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/utils')
-rw-r--r-- | CAN-binder/low-can-binding/utils/socketcan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CAN-binder/low-can-binding/utils/socketcan.cpp b/CAN-binder/low-can-binding/utils/socketcan.cpp index 841c7ba6..0f2e01fd 100644 --- a/CAN-binder/low-can-binding/utils/socketcan.cpp +++ b/CAN-binder/low-can-binding/utils/socketcan.cpp @@ -113,7 +113,7 @@ namespace utils close(); struct ifreq ifr; - socket_ = ::socket(PF_CAN, SOCK_DGRAM, CAN_BCM); + socket_ = open(PF_CAN, SOCK_DGRAM, CAN_BCM); // Attempts to open a socket to CAN bus ::strcpy(ifr.ifr_name, device_name.c_str()); |