diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/conspy.c | 4 | ||||
-rw-r--r-- | miscutils/nandwrite.c | 8 |
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) | |||
377 | "follow\0" No_argument "f" | 377 | "follow\0" No_argument "f" |
378 | "framebuffer\0" No_argument "F" | 378 | "framebuffer\0" No_argument "F" |
379 | ; | 379 | ; |
380 | |||
381 | applet_long_options = conspy_longopts; | ||
382 | #endif | 380 | #endif |
383 | #define keybuf bb_common_bufsiz1 | 381 | #define keybuf bb_common_bufsiz1 |
384 | setup_common_bufsiz(); | 382 | setup_common_bufsiz(); |
@@ -387,7 +385,7 @@ int conspy_main(int argc UNUSED_PARAM, char **argv) | |||
387 | strcpy(G.vcsa_name, DEV_VCSA); | 385 | strcpy(G.vcsa_name, DEV_VCSA); |
388 | 386 | ||
389 | // numeric params | 387 | // numeric params |
390 | opts = getopt32(argv, "vcQsndfFx:+y:+", &G.x, &G.y); | 388 | opts = getopt32long(argv, "vcQsndfFx:+y:+", conspy_longopts, &G.x, &G.y); |
391 | argv += optind; | 389 | argv += optind; |
392 | ttynum = 0; | 390 | ttynum = 0; |
393 | if (argv[0]) { | 391 | 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) | |||
124 | 124 | ||
125 | if (IS_NANDDUMP) { | 125 | if (IS_NANDDUMP) { |
126 | opt_complementary = "=1"; | 126 | opt_complementary = "=1"; |
127 | #if ENABLE_LONG_OPTS | 127 | opts = getopt32long(argv, "ons:f:l:", |
128 | applet_long_options = | 128 | "bb\0" Required_argument "\xff", /* no short equivalent */ |
129 | "bb\0" Required_argument "\xff"; /* no short equivalent */ | 129 | &opt_s, &opt_f, &opt_l, &opt_bb); |
130 | #endif | ||
131 | opts = getopt32(argv, "ons:f:l:", &opt_s, &opt_f, &opt_l, &opt_bb); | ||
132 | } else { /* nandwrite */ | 130 | } else { /* nandwrite */ |
133 | opt_complementary = "-1:?2"; | 131 | opt_complementary = "-1:?2"; |
134 | opts = getopt32(argv, "pns:", &opt_s); | 132 | opts = getopt32(argv, "pns:", &opt_s); |