diff options
author | Rob Landley <rob@landley.net> | 2015-09-11 16:35:14 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-09-11 16:35:14 -0500 |
commit | e5354ca12a232b3f97726214254a868771cb70d1 (patch) | |
tree | ba373c24ede64b8a18f11a02cf834ce99aa586bf /toys/pending/groupadd.c | |
parent | d067571abb2b7934f3350c90ca891beb987c68fd (diff) | |
download | toybox-e5354ca12a232b3f97726214254a868771cb70d1.tar.gz |
Replace toys.exithelp with help_exit() in lib.
Diffstat (limited to 'toys/pending/groupadd.c')
-rw-r--r-- | toys/pending/groupadd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/toys/pending/groupadd.c b/toys/pending/groupadd.c index 615c12f8..30468c94 100644 --- a/toys/pending/groupadd.c +++ b/toys/pending/groupadd.c @@ -62,10 +62,8 @@ void groupadd_main(void) struct group *grp = NULL; char *entry = NULL; - if (toys.optflags && toys.optc == 2) { - toys.exithelp = 1; - error_exit("options, user and group can't be together"); - } + if (toys.optflags && toys.optc == 2) + help_exit("options, user and group can't be together"); if (toys.optc == 2) { //add user to group //toys.optargs[0]- user, toys.optargs[1] - group |