diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-03 11:52:01 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-03 11:52:01 +0000 |
commit | a0f75e2bba69799dfc587b542593c30c91caf8a3 (patch) | |
tree | ba685b739ff1c2dc6c93072802787100600cc0f5 | |
parent | a38330c36640d729704cb0c50c86d2165b1405c2 (diff) | |
download | busybox-w32-a0f75e2bba69799dfc587b542593c30c91caf8a3.tar.gz busybox-w32-a0f75e2bba69799dfc587b542593c30c91caf8a3.tar.bz2 busybox-w32-a0f75e2bba69799dfc587b542593c30c91caf8a3.zip |
- use bb_opt_complementally; Saves another 14 bytes. (thanks again, vodz)
-rw-r--r-- | networking/arping.c | 9 |
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) | |||
279 | { | 279 | { |
280 | unsigned long opt; | 280 | unsigned long opt; |
281 | char *_count, *_timeout, *_device; | 281 | char *_count, *_timeout, *_device; |
282 | |||
283 | /* Dad also sets quit_on_reply. | ||
284 | * Advert also sets unsolicited. | ||
285 | */ | ||
286 | bb_opt_complementally = "Df:AU"; | ||
282 | opt = bb_getopt_ulflags(argc, argv, "DUAqfbc:w:i:s:", | 287 | opt = bb_getopt_ulflags(argc, argv, "DUAqfbc:w:i:s:", |
283 | &_count, &_timeout, &_device); | 288 | &_count, &_timeout, &_device); |
284 | cfg |= opt & 63; /* set respective flags */ | 289 | cfg |= opt & 63; /* set respective flags */ |
285 | if (opt & 1) /* Dad also sets quit_on_reply */ | ||
286 | cfg |= quit_on_reply; | ||
287 | if (opt & 4) /* Advert also sets unsolicited */ | ||
288 | cfg |= unsolicited; | ||
289 | if (opt & 64) /* count */ | 290 | if (opt & 64) /* count */ |
290 | count = atoi(_count); | 291 | count = atoi(_count); |
291 | if (opt & 128) /* timeout */ | 292 | if (opt & 128) /* timeout */ |