From 00677b5e35dd97f415f0b0bef25b55865f55ab33 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 8 Aug 2017 14:59:35 +0200 Subject: *: fix up use of "getopt_longopts" for longopts not in getopt applet Signed-off-by: Denys Vlasenko --- miscutils/conspy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miscutils') 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) unsigned ttynum; int poll_timeout_ms; #if ENABLE_LONG_OPTS - static const char getopt_longopts[] ALIGN1 = + static const char conspy_longopts[] ALIGN1 = "viewonly\0" No_argument "v" "createdevice\0" No_argument "c" "neverquit\0" No_argument "Q" @@ -378,7 +378,7 @@ int conspy_main(int argc UNUSED_PARAM, char **argv) "framebuffer\0" No_argument "F" ; - applet_long_options = getopt_longopts; + applet_long_options = conspy_longopts; #endif #define keybuf bb_common_bufsiz1 setup_common_bufsiz(); -- cgit v1.2.3