diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-08 14:59:35 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-08 14:59:35 +0200 |
commit | 00677b5e35dd97f415f0b0bef25b55865f55ab33 (patch) | |
tree | fa4fa2a08cecfa8edafb21d26e07e28b9ca10d74 /miscutils | |
parent | ddd1ee44436c2ec7e0125ca128c9a148bea8a2c0 (diff) | |
download | busybox-w32-00677b5e35dd97f415f0b0bef25b55865f55ab33.tar.gz busybox-w32-00677b5e35dd97f415f0b0bef25b55865f55ab33.tar.bz2 busybox-w32-00677b5e35dd97f415f0b0bef25b55865f55ab33.zip |
*: fix up use of "getopt_longopts" for longopts not in getopt applet
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/conspy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/conspy.c b/miscutils/conspy.c index 47b9e7207..22b29cbf3 100644 --- a/miscutils/conspy.c +++ b/miscutils/conspy.c | |||
@@ -367,7 +367,7 @@ int conspy_main(int argc UNUSED_PARAM, char **argv) | |||
367 | unsigned ttynum; | 367 | unsigned ttynum; |
368 | int poll_timeout_ms; | 368 | int poll_timeout_ms; |
369 | #if ENABLE_LONG_OPTS | 369 | #if ENABLE_LONG_OPTS |
370 | static const char getopt_longopts[] ALIGN1 = | 370 | static const char conspy_longopts[] ALIGN1 = |
371 | "viewonly\0" No_argument "v" | 371 | "viewonly\0" No_argument "v" |
372 | "createdevice\0" No_argument "c" | 372 | "createdevice\0" No_argument "c" |
373 | "neverquit\0" No_argument "Q" | 373 | "neverquit\0" No_argument "Q" |
@@ -378,7 +378,7 @@ int conspy_main(int argc UNUSED_PARAM, char **argv) | |||
378 | "framebuffer\0" No_argument "F" | 378 | "framebuffer\0" No_argument "F" |
379 | ; | 379 | ; |
380 | 380 | ||
381 | applet_long_options = getopt_longopts; | 381 | applet_long_options = conspy_longopts; |
382 | #endif | 382 | #endif |
383 | #define keybuf bb_common_bufsiz1 | 383 | #define keybuf bb_common_bufsiz1 |
384 | setup_common_bufsiz(); | 384 | setup_common_bufsiz(); |