aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/conspy.c4
-rw-r--r--miscutils/nandwrite.c8
2 files changed, 4 insertions, 8 deletions
diff --git a/miscutils/conspy.c b/miscutils/conspy.c
index 22b29cbf3..a0e0d4e4b 100644
--- a/miscutils/conspy.c
+++ b/miscutils/conspy.c
@@ -377,8 +377,6 @@ int conspy_main(int argc UNUSED_PARAM, char **argv)
"follow\0" No_argument "f"
"framebuffer\0" No_argument "F"
;
-
- applet_long_options = conspy_longopts;
#endif
#define keybuf bb_common_bufsiz1
setup_common_bufsiz();
@@ -387,7 +385,7 @@ int conspy_main(int argc UNUSED_PARAM, char **argv)
strcpy(G.vcsa_name, DEV_VCSA);
// numeric params
- opts = getopt32(argv, "vcQsndfFx:+y:+", &G.x, &G.y);
+ opts = getopt32long(argv, "vcQsndfFx:+y:+", conspy_longopts, &G.x, &G.y);
argv += optind;
ttynum = 0;
if (argv[0]) {
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c
index 14b1ed056..5986ab272 100644
--- a/miscutils/nandwrite.c
+++ b/miscutils/nandwrite.c
@@ -124,11 +124,9 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv)
if (IS_NANDDUMP) {
opt_complementary = "=1";
-#if ENABLE_LONG_OPTS
- applet_long_options =
- "bb\0" Required_argument "\xff"; /* no short equivalent */
-#endif
- opts = getopt32(argv, "ons:f:l:", &opt_s, &opt_f, &opt_l, &opt_bb);
+ opts = getopt32long(argv, "ons:f:l:",
+ "bb\0" Required_argument "\xff", /* no short equivalent */
+ &opt_s, &opt_f, &opt_l, &opt_bb);
} else { /* nandwrite */
opt_complementary = "-1:?2";
opts = getopt32(argv, "pns:", &opt_s);