X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CAN-binder%2Flow-can-binding%2Futils%2Fsocketcan.cpp;h=0f2e01fd791d050506f8dec1cc8fcf180664fb2d;hb=82642e99f93cc62329f34a5f7b3656a5331f1c43;hp=53631e9d331ea40d787e477c6f7c4471c8aeb937;hpb=454e4f65caca85395a5ca79814d6ca333dd5ae6b;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 53631e9d..0f2e01fd 100644 --- a/CAN-binder/low-can-binding/utils/socketcan.cpp +++ b/CAN-binder/low-can-binding/utils/socketcan.cpp @@ -22,7 +22,6 @@ #include #include "socketcan.hpp" -#include "can-message.hpp" namespace utils { @@ -114,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());