summaryrefslogtreecommitdiff
path: root/console-tools/setconsole.c
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools/setconsole.c')
-rw-r--r--console-tools/setconsole.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c
index 8745b3be2..2e60c375e 100644
--- a/console-tools/setconsole.c
+++ b/console-tools/setconsole.c
@@ -11,10 +11,9 @@
11#include "libbb.h" 11#include "libbb.h"
12 12
13#if ENABLE_FEATURE_SETCONSOLE_LONG_OPTIONS 13#if ENABLE_FEATURE_SETCONSOLE_LONG_OPTIONS
14static const struct option setconsole_long_options[] = { 14static const char setconsole_longopts[] =
15 { "reset", 0, NULL, 'r' }, 15 "reset\0" No_argument "r"
16 { 0, 0, 0, 0 } 16 "\0";
17};
18#endif 17#endif
19 18
20#define OPT_SETCONS_RESET 1 19#define OPT_SETCONS_RESET 1
@@ -26,7 +25,7 @@ int setconsole_main(int argc, char **argv)
26 const char *device = CURRENT_TTY; 25 const char *device = CURRENT_TTY;
27 26
28#if ENABLE_FEATURE_SETCONSOLE_LONG_OPTIONS 27#if ENABLE_FEATURE_SETCONSOLE_LONG_OPTIONS
29 applet_long_options = setconsole_long_options; 28 applet_long_options = setconsole_longopts;
30#endif 29#endif
31 flags = getopt32(argc, argv, "r"); 30 flags = getopt32(argc, argv, "r");
32 31