diff options
author | Erik Andersen | 2000-04-21 01:26:49 +0000 |
---|---|---|
committer | Erik Andersen | 2000-04-21 01:26:49 +0000 |
commit | 1d1d95051a288b6bf64498aac9fb20047f384b7d (patch) | |
tree | 2c99ce8ba7d4d592806fbf81899e663bc884676b /ping.c | |
parent | cf8d38a3eb46f4f9c4e674d43cff486cd79c9c0f (diff) | |
download | busybox-1d1d95051a288b6bf64498aac9fb20047f384b7d.zip busybox-1d1d95051a288b6bf64498aac9fb20047f384b7d.tar.gz |
More Doc updates. cmdedit and more termio fixes.
Diffstat (limited to 'ping.c')
-rw-r--r-- | ping.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ /* vi: set sw=4 ts=4: */ /* - * $Id: ping.c,v 1.12 2000/04/13 18:49:43 erik Exp $ + * $Id: ping.c,v 1.13 2000/04/21 01:26:49 erik Exp $ * Mini ping implementation for busybox * * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> @@ -248,7 +248,7 @@ static void sendping(int ign) if (i < 0) perror("ping"); fprintf(stderr, "ping wrote %d chars; %d expected\n", i, - sizeof(packet)); + (int)sizeof(packet)); exit(1); } @@ -393,7 +393,7 @@ static void ping(char *host) /* listen for replies */ while (1) { struct sockaddr_in from; - size_t fromlen = sizeof(from); + socklen_t fromlen = (socklen_t) sizeof(from); int c; if ((c = recvfrom(pingsock, packet, sizeof(packet), 0, |