aboutsummaryrefslogtreecommitdiff
path: root/ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'ping.c')
-rw-r--r--ping.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ping.c b/ping.c
index 52cb07be7..b2b4880ed 100644
--- a/ping.c
+++ b/ping.c
@@ -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.21 2000/07/14 01:51:25 kraai Exp $ 3 * $Id: ping.c,v 1.22 2000/07/14 06:49:52 andersen 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>
@@ -294,7 +294,7 @@ static void unpack(char *, int, struct sockaddr_in *);
294 294
295/**************************************************************************/ 295/**************************************************************************/
296 296
297static void pingstats(int ign) 297static void pingstats(int junk)
298{ 298{
299 signal(SIGINT, SIG_IGN); 299 signal(SIGINT, SIG_IGN);
300 300
@@ -314,7 +314,7 @@ static void pingstats(int ign)
314 exit(0); 314 exit(0);
315} 315}
316 316
317static void sendping(int ign) 317static void sendping(int junk)
318{ 318{
319 struct icmp *pkt; 319 struct icmp *pkt;
320 int i; 320 int i;
@@ -337,7 +337,7 @@ static void sendping(int ign)
337 337
338 if (i < 0) 338 if (i < 0)
339 fatalError("sendto: %s\n", strerror(errno)); 339 fatalError("sendto: %s\n", strerror(errno));
340 else if (i != sizeof(packet)) 340 else if ((size_t)i != sizeof(packet))
341 fatalError("ping wrote %d chars; %d expected\n", i, 341 fatalError("ping wrote %d chars; %d expected\n", i,
342 (int)sizeof(packet)); 342 (int)sizeof(packet));
343 343