summaryrefslogtreecommitdiffhomepage
path: root/util-linux/script.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-08 14:59:35 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-08 14:59:35 +0200
commit00677b5e35dd97f415f0b0bef25b55865f55ab33 (patch)
treefa4fa2a08cecfa8edafb21d26e07e28b9ca10d74 /util-linux/script.c
parentddd1ee44436c2ec7e0125ca128c9a148bea8a2c0 (diff)
*: fix up use of "getopt_longopts" for longopts not in getopt applet
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/script.c')
-rw-r--r--util-linux/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/script.c b/util-linux/script.c
index 89b439163..4cb9842a0 100644
--- a/util-linux/script.c
+++ b/util-linux/script.c
@@ -71,7 +71,7 @@ int script_main(int argc UNUSED_PARAM, char **argv)
};
#if ENABLE_LONG_OPTS
- static const char getopt_longopts[] ALIGN1 =
+ static const char script_longopts[] ALIGN1 =
"append\0" No_argument "a"
"command\0" Required_argument "c"
"flush\0" No_argument "f"
@@ -79,7 +79,7 @@ int script_main(int argc UNUSED_PARAM, char **argv)
"timing\0" Optional_argument "t"
;
- applet_long_options = getopt_longopts;
+ applet_long_options = script_longopts;
#endif
opt_complementary = "?1"; /* max one arg */