svn commit: trunk/busybox/networking

aldot at busybox.net aldot at busybox.net
Mon Apr 3 11:52:03 UTC 2006


Author: aldot
Date: 2006-04-03 04:52:01 -0700 (Mon, 03 Apr 2006)
New Revision: 14736

Log:
- use bb_opt_complementally; Saves another 14 bytes. (thanks again, vodz)


Modified:
   trunk/busybox/networking/arping.c


Changeset:
Modified: trunk/busybox/networking/arping.c
===================================================================
--- trunk/busybox/networking/arping.c	2006-04-03 11:25:48 UTC (rev 14735)
+++ trunk/busybox/networking/arping.c	2006-04-03 11:52:01 UTC (rev 14736)
@@ -279,13 +279,14 @@
 	{
 		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 */




More information about the busybox-cvs mailing list