aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fstrim.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fstrim.c')
-rw-r--r--util-linux/fstrim.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/util-linux/fstrim.c b/util-linux/fstrim.c
index 6d0d61d92..4acfa567a 100644
--- a/util-linux/fstrim.c
+++ b/util-linux/fstrim.c
@@ -15,7 +15,7 @@
15//config: help 15//config: help
16//config: Discard unused blocks on a mounted filesystem. 16//config: Discard unused blocks on a mounted filesystem.
17 17
18//applet:IF_FSTRIM(APPLET(fstrim, BB_DIR_SBIN, BB_SUID_DROP)) 18//applet:IF_FSTRIM(APPLET_NOEXEC(fstrim, fstrim, BB_DIR_SBIN, BB_SUID_DROP, fstrim))
19 19
20//kbuild:lib-$(CONFIG_FSTRIM) += fstrim.o 20//kbuild:lib-$(CONFIG_FSTRIM) += fstrim.o
21 21
@@ -63,17 +63,17 @@ int fstrim_main(int argc UNUSED_PARAM, char **argv)
63 }; 63 };
64 64
65#if ENABLE_LONG_OPTS 65#if ENABLE_LONG_OPTS
66 static const char getopt_longopts[] ALIGN1 = 66 static const char fstrim_longopts[] ALIGN1 =
67 "offset\0" Required_argument "o" 67 "offset\0" Required_argument "o"
68 "length\0" Required_argument "l" 68 "length\0" Required_argument "l"
69 "minimum\0" Required_argument "m" 69 "minimum\0" Required_argument "m"
70 "verbose\0" No_argument "v" 70 "verbose\0" No_argument "v"
71 ; 71 ;
72 applet_long_options = getopt_longopts;
73#endif 72#endif
74 73
75 opt_complementary = "=1"; /* exactly one non-option arg: the mountpoint */ 74 opts = getopt32long(argv, "^" "o:l:m:v" "\0" "=1", fstrim_longopts,
76 opts = getopt32(argv, "o:l:m:v", &arg_o, &arg_l, &arg_m); 75 &arg_o, &arg_l, &arg_m
76 );
77 77
78 memset(&range, 0, sizeof(range)); 78 memset(&range, 0, sizeof(range));
79 range.len = ULLONG_MAX; 79 range.len = ULLONG_MAX;