aboutsummaryrefslogtreecommitdiff
path: root/ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'ping.c')
-rw-r--r--ping.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ping.c b/ping.c
index ef6503aeb..dca4c3cfe 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.12 2000/04/13 18:49:43 erik Exp $ 3 * $Id: ping.c,v 1.13 2000/04/21 01:26:49 erik 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>
@@ -248,7 +248,7 @@ static void sendping(int ign)
248 if (i < 0) 248 if (i < 0)
249 perror("ping"); 249 perror("ping");
250 fprintf(stderr, "ping wrote %d chars; %d expected\n", i, 250 fprintf(stderr, "ping wrote %d chars; %d expected\n", i,
251 sizeof(packet)); 251 (int)sizeof(packet));
252 exit(1); 252 exit(1);
253 } 253 }
254 254
@@ -393,7 +393,7 @@ static void ping(char *host)
393 /* listen for replies */ 393 /* listen for replies */
394 while (1) { 394 while (1) {
395 struct sockaddr_in from; 395 struct sockaddr_in from;
396 size_t fromlen = sizeof(from); 396 socklen_t fromlen = (socklen_t) sizeof(from);
397 int c; 397 int c;
398 398
399 if ((c = recvfrom(pingsock, packet, sizeof(packet), 0, 399 if ((c = recvfrom(pingsock, packet, sizeof(packet), 0,