aboutsummaryrefslogtreecommitdiff
path: root/miscutils/conspy.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/conspy.c')
-rw-r--r--miscutils/conspy.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/miscutils/conspy.c b/miscutils/conspy.c
index 47b9e7207..a0e0d4e4b 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"
@@ -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 = getopt_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]) {