summaryrefslogtreecommitdiff
path: root/ping.c
diff options
context:
space:
mode:
authorEric Andersen2000-07-14 06:49:52 +0000
committerEric Andersen2000-07-14 06:49:52 +0000
commitfad04fdd12604a46eff62875343515c33e1863c6 (patch)
tree7b840eb074878c454141ce76ba7328f4a8621f1b /ping.c
parentb870af09ae1892ab84dd089529675cc2df533e71 (diff)
downloadbusybox-fad04fdd12604a46eff62875343515c33e1863c6.zip
busybox-fad04fdd12604a46eff62875343515c33e1863c6.tar.gz
More cleanups.
-Erik
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 52cb07b..b2b4880 100644
--- a/ping.c
+++ b/ping.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.21 2000/07/14 01:51:25 kraai Exp $
+ * $Id: ping.c,v 1.22 2000/07/14 06:49:52 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -294,7 +294,7 @@ static void unpack(char *, int, struct sockaddr_in *);
/**************************************************************************/
-static void pingstats(int ign)
+static void pingstats(int junk)
{
signal(SIGINT, SIG_IGN);
@@ -314,7 +314,7 @@ static void pingstats(int ign)
exit(0);
}
-static void sendping(int ign)
+static void sendping(int junk)
{
struct icmp *pkt;
int i;
@@ -337,7 +337,7 @@ static void sendping(int ign)
if (i < 0)
fatalError("sendto: %s\n", strerror(errno));
- else if (i != sizeof(packet))
+ else if ((size_t)i != sizeof(packet))
fatalError("ping wrote %d chars; %d expected\n", i,
(int)sizeof(packet));