zcip: simplify code
[oweals/busybox.git] / networking / arping.c
index 357dcaaf0ab3ea710eb3db33c66c991a7e9e2b8b..dbfd75ef52da712393cca1c81c13d8cb31a84560 100644 (file)
@@ -10,7 +10,6 @@
 //usage:       "[-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP"
 //usage:#define arping_full_usage "\n\n"
 //usage:       "Send ARP requests/replies\n"
-//usage:     "\nOptions:"
 //usage:     "\n       -f              Quit on first ARP reply"
 //usage:     "\n       -q              Quiet"
 //usage:     "\n       -b              Keep broadcasting, don't go unicast"
@@ -285,7 +284,6 @@ int arping_main(int argc UNUSED_PARAM, char **argv)
        // Need to remove SUID_NEVER from applets.h for this to work
        //xsetuid(getuid());
 
-       err_str = xasprintf("interface %s %%s", device);
        {
                unsigned opt;
                char *str_timeout;
@@ -303,7 +301,7 @@ int arping_main(int argc UNUSED_PARAM, char **argv)
        }
 
        target = argv[optind];
-
+       err_str = xasprintf("interface %s %%s", device);
        xfunc_error_retval = 2;
 
        {