Compare commits
No commits in common. "287469245c5fa68d493e3b022712700571544193" and "7fb81e67798fc57af9f519051d48e05675189eba" have entirely different histories.
287469245c
...
7fb81e6779
9
slcand.c
9
slcand.c
|
|
@ -370,13 +370,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* retrieve the name of the created CAN netdevice */
|
||||
if (ioctl(fd, SIOCGIFNAME, ifr.ifr_name) < 0) {
|
||||
if (name) {
|
||||
perror("ioctl SIOCGIFNAME");
|
||||
exit(EXIT_FAILURE);
|
||||
} else {
|
||||
/* Graceful degradation: we only needed the name for display. */
|
||||
snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "<unknown>");
|
||||
}
|
||||
perror("ioctl SIOCGIFNAME");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
syslogger(LOG_NOTICE, "attached TTY %s to netdevice %s\n", ttypath, ifr.ifr_name);
|
||||
|
|
|
|||
Loading…
Reference in New Issue