diff options
| author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-03 11:52:01 +0000 |
|---|---|---|
| committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-03 11:52:01 +0000 |
| commit | 77682bf5189451f2cea5fdc5aa54cc4e4e0f24f0 (patch) | |
| tree | ba685b739ff1c2dc6c93072802787100600cc0f5 | |
| parent | c16d67309a0ce769cd2244ca9936350b4e6d97ce (diff) | |
| download | busybox-w32-77682bf5189451f2cea5fdc5aa54cc4e4e0f24f0.tar.gz busybox-w32-77682bf5189451f2cea5fdc5aa54cc4e4e0f24f0.tar.bz2 busybox-w32-77682bf5189451f2cea5fdc5aa54cc4e4e0f24f0.zip | |
- use bb_opt_complementally; Saves another 14 bytes. (thanks again, vodz)
git-svn-id: svn://busybox.net/trunk/busybox@14736 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -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 */ |
