diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-22 14:12:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-22 14:12:08 +0000 |
commit | 703e20235aa0624d3ff4335c1e86edaa6e21efe2 (patch) | |
tree | 49e8451efad93b75c0be74ee553d3b3f8c04a25d /networking/ping.c | |
parent | 6cd2d2bcba37a13d0d73326dd7bca64bbccce4f8 (diff) | |
download | busybox-w32-703e20235aa0624d3ff4335c1e86edaa6e21efe2.tar.gz busybox-w32-703e20235aa0624d3ff4335c1e86edaa6e21efe2.tar.bz2 busybox-w32-703e20235aa0624d3ff4335c1e86edaa6e21efe2.zip |
cleanups: unnecessary casts, unified const_1, eliminate cross-.c file
prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED",
removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
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) | |||
343 | 343 | ||
344 | /* set recv buf for broadcast pings */ | 344 | /* set recv buf for broadcast pings */ |
345 | sockopt = 48 * 1024; /* explain why 48k? */ | 345 | sockopt = 48 * 1024; /* explain why 48k? */ |
346 | setsockopt(pingsock, SOL_SOCKET, SO_RCVBUF, (char *) &sockopt, | 346 | setsockopt(pingsock, SOL_SOCKET, SO_RCVBUF, &sockopt, sizeof(sockopt)); |
347 | sizeof(sockopt)); | ||
348 | 347 | ||
349 | printf("PING %s (%s)", | 348 | printf("PING %s (%s)", |
350 | hostent->h_name, | 349 | hostent->h_name, |