Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit b7c5cd4de36c2f126e1db47bc85961b3dcb6811d Author: Sven Eckelmann sven@narfation.org Date: Tue Oct 25 07:43:11 2016 +0200
batctl: Fix error message on icmp_interface_read failure
Signed-off-by: Sven Eckelmann sven@narfation.org
b7c5cd4de36c2f126e1db47bc85961b3dcb6811d 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; }