diff options
Diffstat (limited to 'networking/ifenslave.c')
-rw-r--r-- | networking/ifenslave.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/networking/ifenslave.c b/networking/ifenslave.c index a845c4e..5e769b6 100644 --- a/networking/ifenslave.c +++ b/networking/ifenslave.c @@ -493,19 +493,15 @@ int ifenslave_main(int argc UNUSED_PARAM, char **argv) OPT_d = (1 << 1), OPT_f = (1 << 2), }; -#if ENABLE_LONG_OPTS - static const char ifenslave_longopts[] ALIGN1 = + + INIT_G(); + + opt = getopt32long(argv, "cdfa", "change-active\0" No_argument "c" "detach\0" No_argument "d" "force\0" No_argument "f" /* "all-interfaces\0" No_argument "a" */ - ; - - applet_long_options = ifenslave_longopts; -#endif - INIT_G(); - - opt = getopt32(argv, "cdfa"); + ); argv += optind; if (opt & (opt-1)) /* Only one option can be given */ bb_show_usage(); |