summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley2005-07-25 01:46:24 +0000
committerRob Landley2005-07-25 01:46:24 +0000
commitab6399a4c6c9fe9c7661120bf65ed398eb0afd9e (patch)
tree3d2042fed82bdc99f5b562b1a71acb9264d36a01
parentca17c937c2adafc194c772bca922df4b87cda3dd (diff)
downloadbusybox-ab6399a4c6c9fe9c7661120bf65ed398eb0afd9e.zip
busybox-ab6399a4c6c9fe9c7661120bf65ed398eb0afd9e.tar.gz
Tweak from Sean Jackman: use socklen_t instead of size_t for a declaration.
-rw-r--r--busybox/networking/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/busybox/networking/ping.c b/busybox/networking/ping.c
index 50f3930..ddbca20 100644
--- a/busybox/networking/ping.c
+++ b/busybox/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) {