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:
parent
dbc049fda4
commit
03e827a422
@ -136,7 +136,7 @@ static void ping(const char *host)
|
|||||||
/* listen for replies */
|
/* listen for replies */
|
||||||
while (1) {
|
while (1) {
|
||||||
struct sockaddr_in from;
|
struct sockaddr_in from;
|
||||||
size_t fromlen = sizeof(from);
|
socklen_t fromlen = sizeof(from);
|
||||||
|
|
||||||
if ((c = recvfrom(pingsock, packet, sizeof(packet), 0,
|
if ((c = recvfrom(pingsock, packet, sizeof(packet), 0,
|
||||||
(struct sockaddr *) &from, &fromlen)) < 0) {
|
(struct sockaddr *) &from, &fromlen)) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user