summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger2005-07-26 23:00:59 +0000
committerMike Frysinger2005-07-26 23:00:59 +0000
commit03e827a42273b11a540e53469486620d86c998c7 (patch)
treec75b6b23823b56195e1d8392dc1102d4dd14e1fe
parentdbc049fda45ab9527c893c9d942528edd8e35905 (diff)
downloadbusybox-03e827a42273b11a540e53469486620d86c998c7.zip
busybox-03e827a42273b11a540e53469486620d86c998c7.tar.gz
2005-03-19 Shaun Jackman <sjackman@gmail.com>
* networking/ping.c (ping): Change the type of fromlen to socklen_t.
-rw-r--r--networking/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ping.c b/networking/ping.c
index c7cbd70..bba37a0 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -136,7 +136,7 @@ static void ping(const char *host)
/* listen for replies */
while (1) {
struct sockaddr_in from;
- size_t fromlen = sizeof(from);
+ socklen_t fromlen = sizeof(from);
if ((c = recvfrom(pingsock, packet, sizeof(packet), 0,
(struct sockaddr *) &from, &fromlen)) < 0) {