Skip to content

Commit

Permalink
cansequence: main(): error handling: add "()" to function name in err…
Browse files Browse the repository at this point in the history
…or message

Commit 0be066b ("cansequence: main(): allow to bind on "any"
interface") converted from SIOCGIFINDEX ioctl() to if_nametoindex()
and adjusted the error message, but forgot the "()" after the function
name, which is used in the rest of the error messages in this file.

Add the missing "()".

Fixes: 0be066b ("cansequence: main(): allow to bind on "any" interface")
  • Loading branch information
marckleinebudde committed Sep 19, 2023
1 parent e7c03ee commit c8cf342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cansequence.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ int main(int argc, char **argv)
if (strcmp(ANYDEV, interface)) {
addr.can_ifindex = if_nametoindex(interface);
if (!addr.can_ifindex) {
perror("if_nametoindex");
perror("if_nametoindex()");
exit(EXIT_FAILURE);
}
}
Expand Down

0 comments on commit c8cf342

Please sign in to comment.