From 82642e99f93cc62329f34a5f7b3656a5331f1c43 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 3 May 2017 13:29:07 +0200 Subject: Use the private method instead of direct C syscall. Change-Id: I1c0e04e38fec92dee167720c3128a7493d4cf9b2 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/utils/socketcan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CAN-binder/low-can-binding/utils/socketcan.cpp b/CAN-binder/low-can-binding/utils/socketcan.cpp index 841c7ba..0f2e01f 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()); -- cgit 1.2.3-korg