aboutsummaryrefslogtreecommitdiff
path: root/networking/arping.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-03 11:52:01 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-03 11:52:01 +0000
commita0f75e2bba69799dfc587b542593c30c91caf8a3 (patch)
treeba685b739ff1c2dc6c93072802787100600cc0f5 /networking/arping.c
parenta38330c36640d729704cb0c50c86d2165b1405c2 (diff)
downloadbusybox-a0f75e2bba69799dfc587b542593c30c91caf8a3.tar.gz
- use bb_opt_complementally; Saves another 14 bytes. (thanks again, vodz)
Diffstat (limited to 'networking/arping.c')
-rw-r--r--networking/arping.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/networking/arping.c b/networking/arping.c
index 7618e9630..6bcbc7044 100644
--- a/networking/arping.c
+++ b/networking/arping.c
@@ -279,13 +279,14 @@ int arping_main(int argc, char **argv)
{
unsigned long opt;
char *_count, *_timeout, *_device;
+
+ /* Dad also sets quit_on_reply.
+ * Advert also sets unsolicited.
+ */
+ bb_opt_complementally = "Df:AU";
opt = bb_getopt_ulflags(argc, argv, "DUAqfbc:w:i:s:",
&_count, &_timeout, &_device);
cfg |= opt & 63; /* set respective flags */
- if (opt & 1) /* Dad also sets quit_on_reply */
- cfg |= quit_on_reply;
- if (opt & 4) /* Advert also sets unsolicited */
- cfg |= unsolicited;
if (opt & 64) /* count */
count = atoi(_count);
if (opt & 128) /* timeout */