aboutsummaryrefslogtreecommitdiff
path: root/util-linux/flock.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/flock.c')
-rw-r--r--util-linux/flock.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util-linux/flock.c b/util-linux/flock.c
index ec35af18f..dd0bfd430 100644
--- a/util-linux/flock.c
+++ b/util-linux/flock.c
@@ -38,17 +38,15 @@ int flock_main(int argc UNUSED_PARAM, char **argv)
38 }; 38 };
39 39
40#if ENABLE_LONG_OPTS 40#if ENABLE_LONG_OPTS
41 static const char getopt_longopts[] ALIGN1 = 41 static const char flock_longopts[] ALIGN1 =
42 "shared\0" No_argument "s" 42 "shared\0" No_argument "s"
43 "exclusive\0" No_argument "x" 43 "exclusive\0" No_argument "x"
44 "unlock\0" No_argument "u" 44 "unlock\0" No_argument "u"
45 "nonblock\0" No_argument "n" 45 "nonblock\0" No_argument "n"
46 ; 46 ;
47 applet_long_options = getopt_longopts;
48#endif 47#endif
49 opt_complementary = "-1";
50 48
51 opt = getopt32(argv, "+sxnu"); 49 opt = getopt32long(argv, "^+" "sxnu" "\0" "-1", flock_longopts);
52 argv += optind; 50 argv += optind;
53 51
54 if (argv[1]) { 52 if (argv[1]) {