diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-22 23:22:06 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-22 23:22:06 +0000 |
commit | 48237b0c88343154d58854020c3a9c8b07c61b10 (patch) | |
tree | b36bc84f22dd797b45c8d665e50e2f6c690e1370 /networking/arping.c | |
parent | b40bdb383a6b7a7f0fd36d0b1cc24deb42cd5f0d (diff) | |
download | busybox-w32-48237b0c88343154d58854020c3a9c8b07c61b10.tar.gz busybox-w32-48237b0c88343154d58854020c3a9c8b07c61b10.tar.bz2 busybox-w32-48237b0c88343154d58854020c3a9c8b07c61b10.zip |
introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),
use them where appropriate. 200 bytes saved
Diffstat (limited to 'networking/arping.c')
-rw-r--r-- | networking/arping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/arping.c b/networking/arping.c index e4c9b86a9..2d92bf4be 100644 --- a/networking/arping.c +++ b/networking/arping.c | |||
@@ -354,7 +354,7 @@ int arping_main(int argc, char **argv) | |||
354 | bb_error_msg_and_die("bind"); | 354 | bb_error_msg_and_die("bind"); |
355 | } | 355 | } |
356 | } else if (!(cfg&dad)) { | 356 | } else if (!(cfg&dad)) { |
357 | int on = 1; | 357 | static const int on = 1; |
358 | socklen_t alen = sizeof(saddr); | 358 | socklen_t alen = sizeof(saddr); |
359 | 359 | ||
360 | saddr.sin_port = htons(1025); | 360 | saddr.sin_port = htons(1025); |