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 a845c4e7e..5e769b61d 100644 --- a/networking/ifenslave.c +++ b/networking/ifenslave.c | |||
@@ -493,19 +493,15 @@ int ifenslave_main(int argc UNUSED_PARAM, char **argv) | |||
493 | OPT_d = (1 << 1), | 493 | OPT_d = (1 << 1), |
494 | OPT_f = (1 << 2), | 494 | OPT_f = (1 << 2), |
495 | }; | 495 | }; |
496 | #if ENABLE_LONG_OPTS | 496 | |
497 | static const char ifenslave_longopts[] ALIGN1 = | 497 | INIT_G(); |
498 | |||
499 | opt = getopt32long(argv, "cdfa", | ||
498 | "change-active\0" No_argument "c" | 500 | "change-active\0" No_argument "c" |
499 | "detach\0" No_argument "d" | 501 | "detach\0" No_argument "d" |
500 | "force\0" No_argument "f" | 502 | "force\0" No_argument "f" |
501 | /* "all-interfaces\0" No_argument "a" */ | 503 | /* "all-interfaces\0" No_argument "a" */ |
502 | ; | 504 | ); |
503 | |||
504 | applet_long_options = ifenslave_longopts; | ||
505 | #endif | ||
506 | INIT_G(); | ||
507 | |||
508 | opt = getopt32(argv, "cdfa"); | ||
509 | argv += optind; | 505 | argv += optind; |
510 | if (opt & (opt-1)) /* Only one option can be given */ | 506 | if (opt & (opt-1)) /* Only one option can be given */ |
511 | bb_show_usage(); | 507 | bb_show_usage(); |