diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-08 14:59:35 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-08 14:59:35 +0200 |
commit | 00677b5e35dd97f415f0b0bef25b55865f55ab33 (patch) | |
tree | fa4fa2a08cecfa8edafb21d26e07e28b9ca10d74 /util-linux/flock.c | |
parent | ddd1ee44436c2ec7e0125ca128c9a148bea8a2c0 (diff) | |
download | busybox-w32-00677b5e35dd97f415f0b0bef25b55865f55ab33.tar.gz busybox-w32-00677b5e35dd97f415f0b0bef25b55865f55ab33.tar.bz2 busybox-w32-00677b5e35dd97f415f0b0bef25b55865f55ab33.zip |
*: 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/flock.c')
-rw-r--r-- | util-linux/flock.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
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; | 47 | applet_long_options = flock_longopts; |
48 | #endif | 48 | #endif |
49 | opt_complementary = "-1"; | 49 | opt_complementary = "-1"; |
50 | 50 | ||