2005-03-19 Shaun Jackman <sjackman@gmail.com>
authorMike Frysinger <vapier@gentoo.org>
Tue, 26 Jul 2005 23:00:59 +0000 (23:00 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 26 Jul 2005 23:00:59 +0000 (23:00 -0000)
* networking/ping.c (ping): Change the type of fromlen to socklen_t.

networking/ping.c

index c7cbd7078a0b4b767640b3e35cd8220adee0ae4c..bba37a0253c247e7a750dd9e505ebb518971b3cc 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) {