diff options
Diffstat (limited to 'ping.c')
-rw-r--r-- | ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * $Id: ping.c,v 1.28 2000/12/07 19:56:48 markw Exp $ | 3 | * $Id: ping.c,v 1.29 2000/12/18 03:57:16 kraai Exp $ |
4 | * Mini ping implementation for busybox | 4 | * Mini ping implementation for busybox |
5 | * | 5 | * |
6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> | 6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> |
@@ -325,7 +325,7 @@ static void sendping(int junk) | |||
325 | (struct sockaddr *) &pingaddr, sizeof(struct sockaddr_in)); | 325 | (struct sockaddr *) &pingaddr, sizeof(struct sockaddr_in)); |
326 | 326 | ||
327 | if (i < 0) | 327 | if (i < 0) |
328 | error_msg_and_die("sendto: %s\n", strerror(errno)); | 328 | perror_msg_and_die("sendto"); |
329 | else if ((size_t)i != sizeof(packet)) | 329 | else if ((size_t)i != sizeof(packet)) |
330 | error_msg_and_die("ping wrote %d chars; %d expected\n", i, | 330 | error_msg_and_die("ping wrote %d chars; %d expected\n", i, |
331 | (int)sizeof(packet)); | 331 | (int)sizeof(packet)); |