Merge pull request #458 from marckleinebudde/cansequence-error-messages
cansequence: error messagespull/461/head
commit
39d6bba36a
|
|
@ -125,7 +125,7 @@ static void do_receive()
|
||||||
|
|
||||||
nbytes = recvmsg(s, &msg, 0);
|
nbytes = recvmsg(s, &msg, 0);
|
||||||
if (nbytes < 0) {
|
if (nbytes < 0) {
|
||||||
perror("read()");
|
perror("recvmsg()");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -347,7 +347,7 @@ int main(int argc, char **argv)
|
||||||
if (strcmp(ANYDEV, interface)) {
|
if (strcmp(ANYDEV, interface)) {
|
||||||
addr.can_ifindex = if_nametoindex(interface);
|
addr.can_ifindex = if_nametoindex(interface);
|
||||||
if (!addr.can_ifindex) {
|
if (!addr.can_ifindex) {
|
||||||
perror("if_nametoindex");
|
perror("if_nametoindex()");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue