* src/userdel.c, src/lastlog.c, src/gpasswd.c, src/newusers.c,

src/chpasswd.c, src/groupmems.c, src/usermod.c, src/chgpasswd.c,
	src/vipw.c, src/su.c, src/useradd.c, src/groupmod.c, src/passwd.c,
	src/groupadd.c, src/chage.c, src/faillog.c, src/chsh.c: Use
	booleans for tests.
	* src/userdel.c, src/gpasswd.c, src/groupmems.c, src/usermod.c,
	src/groupmod.c, src/passwd.c: Use a break even after usage().
This commit is contained in:
nekral-guest
2009-09-05 22:31:29 +00:00
parent ff60398b1c
commit 8806b07bd2
18 changed files with 33 additions and 17 deletions

View File

@ -120,7 +120,7 @@ static void usage (int status)
" even if not owned by user\n"
" -h, --help display this help message and exit\n"
" -r, --remove remove home directory and mail spool\n"
"\n"), status ? stderr : stdout);
"\n"), (E_SUCCESS != status) ? stderr : stdout);
exit (status);
}
@ -776,6 +776,7 @@ int main (int argc, char **argv)
break;
case 'h':
usage (E_SUCCESS);
break;
case 'r': /* remove home dir and mailbox */
rflg = true;
break;