Skip to content

Commit

Permalink
cansequence: do_receive(): fix error message if recvmsg() fails
Browse files Browse the repository at this point in the history
In commit 9567230 ("cansequence: print out dropped packages by
socket counter"), the read() syscall was replaced by recvmsg(). Adjust
error message accordingly.

Fixes: 9567230 ("cansequence: print out dropped packages by socket counter")
  • Loading branch information
marckleinebudde committed Sep 19, 2023
1 parent 096d42a commit e7c03ee
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 @@ -125,7 +125,7 @@ static void do_receive()

nbytes = recvmsg(s, &msg, 0);
if (nbytes < 0) {
perror("read()");
perror("recvmsg()");
exit(EXIT_FAILURE);
}

Expand Down

0 comments on commit e7c03ee

Please sign in to comment.