summaryrefslogtreecommitdiff
path: root/util-linux/blkdiscard.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/blkdiscard.c')
-rw-r--r--util-linux/blkdiscard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/blkdiscard.c b/util-linux/blkdiscard.c
index 048d39e..5863f0a 100644
--- a/util-linux/blkdiscard.c
+++ b/util-linux/blkdiscard.c
@@ -53,8 +53,7 @@ int blkdiscard_main(int argc UNUSED_PARAM, char **argv)
OPT_SECURE = (1 << 2),
};
- opt_complementary = "=1";
- opts = getopt32(argv, "o:l:s", &offset_str, &length_str);
+ opts = getopt32(argv, "^" "o:l:s" "\0" "=1", &offset_str, &length_str);
argv += optind;
fd = xopen(argv[0], O_RDWR|O_EXCL);