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/pending/dd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'toys/pending/dd.c') diff --git a/toys/pending/dd.c b/toys/pending/dd.c index 366d3c54..24d95657 100644 --- a/toys/pending/dd.c +++ b/toys/pending/dd.c @@ -297,10 +297,7 @@ void dd_main() while (*toys.optargs) { if (!(arg = strchr(*toys.optargs, '='))) error_exit("unknown arg %s", *toys.optargs); *arg++ = '\0'; - if (!*arg) { - toys.exithelp = 1; - error_exit(""); - } + if (!*arg) help_exit(0); key.name = *toys.optargs; if (!(res = bsearch(&key, operands, ARRAY_LEN(operands), sizeof(struct pair), comp))) error_exit("unknown arg %s", key.name); -- cgit v1.2.3