Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit 10a75ee562d44be3b87963ab45690de2de6a3f1a Author: Sven Eckelmann sven@narfation.org Date: Tue Oct 25 07:42:01 2016 +0200
batctl: Fix error message on icmp_interface_write failure
Signed-off-by: Sven Eckelmann sven@narfation.org
10a75ee562d44be3b87963ab45690de2de6a3f1a ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ping.c b/ping.c index 1a0e2fe..0920f4b 100644 --- a/ping.c +++ b/ping.c @@ -201,7 +201,7 @@ int ping(char *mesh_iface, int argc, char **argv) (struct batadv_icmp_header *)&icmp_packet_out, packet_len); if (res < 0) { - fprintf(stderr, "Error - can't send icmp packet: %s\n", strerror(res)); + fprintf(stderr, "Error - can't send icmp packet: %s\n", strerror(-res)); goto sleep; }