diff options
Diffstat (limited to 'networking/ping.c')
-rw-r--r-- | networking/ping.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/ping.c b/networking/ping.c index d8a70334d..91708d282 100644 --- a/networking/ping.c +++ b/networking/ping.c @@ -343,8 +343,7 @@ static void ping(const char *host) /* set recv buf for broadcast pings */ sockopt = 48 * 1024; /* explain why 48k? */ - setsockopt(pingsock, SOL_SOCKET, SO_RCVBUF, (char *) &sockopt, - sizeof(sockopt)); + setsockopt(pingsock, SOL_SOCKET, SO_RCVBUF, &sockopt, sizeof(sockopt)); printf("PING %s (%s)", hostent->h_name, |