From 03e827a42273b11a540e53469486620d86c998c7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 26 Jul 2005 23:00:59 +0000 Subject: [PATCH] 2005-03-19 Shaun Jackman * networking/ping.c (ping): Change the type of fromlen to socklen_t. --- networking/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/ping.c b/networking/ping.c index c7cbd7078..bba37a025 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) { -- 2.25.1