aboutsummaryrefslogtreecommitdiff
path: root/toys/other/blockdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/blockdev.c')
-rw-r--r--toys/other/blockdev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/toys/other/blockdev.c b/toys/other/blockdev.c
index 79b4d6f9..e5a504e6 100644
--- a/toys/other/blockdev.c
+++ b/toys/other/blockdev.c
@@ -43,10 +43,7 @@ void blockdev_main(void)
char **ss;
long long val = 0;
- if (!toys.optflags) {
- toys.exithelp = 1;
- error_exit("need --option");
- }
+ if (!toys.optflags) help_exit("need --option");
for (ss = toys.optargs; *ss; ss++) {
int fd = xopen(*ss, O_RDONLY), i;