summaryrefslogtreecommitdiff
path: root/util-linux/fstrim.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fstrim.c')
-rw-r--r--util-linux/fstrim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/fstrim.c b/util-linux/fstrim.c
index 1fbf0c8..8f0a053 100644
--- a/util-linux/fstrim.c
+++ b/util-linux/fstrim.c
@@ -69,11 +69,10 @@ int fstrim_main(int argc UNUSED_PARAM, char **argv)
"minimum\0" Required_argument "m"
"verbose\0" No_argument "v"
;
- applet_long_options = fstrim_longopts;
#endif
opt_complementary = "=1"; /* exactly one non-option arg: the mountpoint */
- opts = getopt32(argv, "o:l:m:v", &arg_o, &arg_l, &arg_m);
+ opts = getopt32long(argv, "o:l:m:v", fstrim_longopts, &arg_o, &arg_l, &arg_m);
memset(&range, 0, sizeof(range));
range.len = ULLONG_MAX;