Tweak from Sean Jackman: use socklen_t instead of size_t for a declaration.
authorRob Landley <rob@landley.net>
Mon, 25 Jul 2005 01:46:24 +0000 (01:46 -0000)
committerRob Landley <rob@landley.net>
Mon, 25 Jul 2005 01:46:24 +0000 (01:46 -0000)
busybox/networking/ping.c

index 50f3930ff8ad8732b878eee466f57a8cc3d61c93..ddbca2064564a7683d3bf12aa111a2c36a8c1c14 100644 (file)
@@ -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) {