2005-03-19 Shaun Jackman <sjackman@gmail.com>

* networking/ping.c (ping): Change the type of fromlen to socklen_t.
This commit is contained in:
Mike Frysinger 2005-07-26 23:00:59 +00:00
parent dbc049fda4
commit 03e827a422

View 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) {