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 --- util-linux/flock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util-linux/flock.c') diff --git a/util-linux/flock.c b/util-linux/flock.c index ec35af18f..b55e07adb 100644 --- a/util-linux/flock.c +++ b/util-linux/flock.c @@ -38,13 +38,13 @@ int flock_main(int argc UNUSED_PARAM, char **argv) }; #if ENABLE_LONG_OPTS - static const char getopt_longopts[] ALIGN1 = + static const char flock_longopts[] ALIGN1 = "shared\0" No_argument "s" "exclusive\0" No_argument "x" "unlock\0" No_argument "u" "nonblock\0" No_argument "n" ; - applet_long_options = getopt_longopts; + applet_long_options = flock_longopts; #endif opt_complementary = "-1"; -- cgit v1.2.3