From e5354ca12a232b3f97726214254a868771cb70d1 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 11 Sep 2015 16:35:14 -0500 Subject: Replace toys.exithelp with help_exit() in lib. --- toys/other/blockdev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'toys/other/blockdev.c') 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; -- cgit v1.2.3