From: Romain Forlot Date: Wed, 3 May 2017 11:29:07 +0000 (+0200) Subject: Use the private method instead of direct C syscall. X-Git-Tag: 3.99.1~99 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=82642e99f93cc62329f34a5f7b3656a5331f1c43;p=apps%2Flow-level-can-service.git Use the private method instead of direct C syscall. Change-Id: I1c0e04e38fec92dee167720c3128a7493d4cf9b2 Signed-off-by: Romain Forlot --- 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());