mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
- use bb_opt_complementally; Saves another 14 bytes. (thanks again, vodz)
This commit is contained in:
parent
a38330c366
commit
a0f75e2bba
@ -279,13 +279,14 @@ int arping_main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
unsigned long opt;
|
unsigned long opt;
|
||||||
char *_count, *_timeout, *_device;
|
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:",
|
opt = bb_getopt_ulflags(argc, argv, "DUAqfbc:w:i:s:",
|
||||||
&_count, &_timeout, &_device);
|
&_count, &_timeout, &_device);
|
||||||
cfg |= opt & 63; /* set respective flags */
|
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 */
|
if (opt & 64) /* count */
|
||||||
count = atoi(_count);
|
count = atoi(_count);
|
||||||
if (opt & 128) /* timeout */
|
if (opt & 128) /* timeout */
|
||||||
|
Loading…
Reference in New Issue
Block a user