git-svn-id: svn://db.shs.com.ru/pip@610 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -43,7 +43,7 @@ bool PICAN::openDevice() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
struct ifreq ifr;
|
struct ifreq ifr;
|
||||||
strcpy(ifr.ifr_name, path.dataAscii());
|
strcpy(ifr.ifr_name, path().dataAscii());
|
||||||
if(ioctl(sock, SIOCGIFINDEX, &ifr) < 0){
|
if(ioctl(sock, SIOCGIFINDEX, &ifr) < 0){
|
||||||
piCoutObj << "Error! while determin the interface ioctl";
|
piCoutObj << "Error! while determin the interface ioctl";
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user