Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit 8ed34bdefbec8523d381aa4792821168f8f69c72 Author: Sven Eckelmann sven@narfation.org Date: Tue Oct 25 07:43:11 2016 +0200
batctl: batctl: Fix error message on icmp_interface_read failure
Signed-off-by: Sven Eckelmann sven@narfation.org
8ed34bdefbec8523d381aa4792821168f8f69c72 ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ping.c b/ping.c index 0920f4b..23af551 100644 --- a/ping.c +++ b/ping.c @@ -222,7 +222,7 @@ read_packet: }
if (read_len < 0) { - fprintf(stderr, "Error - can't receive icmp packets: %s\n", strerror(read_len)); + fprintf(stderr, "Error - can't receive icmp packets: %s\n", strerror(-read_len)); goto sleep; }