X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=CAN-binder%2Flow-can-binding%2Futils%2Fsocketcan.cpp;h=0f2e01fd791d050506f8dec1cc8fcf180664fb2d;hb=82642e99f93cc62329f34a5f7b3656a5331f1c43;hp=841c7ba644a7e5135101083bd940cb0a77cd5b5e;hpb=b9e1b4435a406a8a27c078ea05dee1240e51704a;p=apps%2Fagl-service-can-low-level.git 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());