Merge pull request #458 from marckleinebudde/cansequence-error-messages

cansequence: error messages
pull/461/head
Marc Kleine-Budde 2023-09-19 09:07:20 +02:00 committed by GitHub
commit 39d6bba36a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
} }
} }