Cleaned up error handling and uses of TRUE/FALSE.

This commit is contained in:
Matt Kraai 2000-10-25 16:38:00 +00:00
parent 97d2612566
commit ac1169b20f
2 changed files with 4 additions and 6 deletions

View File

@ -33,8 +33,7 @@ extern int logname_main(int argc, char **argv)
my_getpwuid(user, geteuid()); my_getpwuid(user, geteuid());
if (user) { if (user) {
puts(user); puts(user);
exit(TRUE); return EXIT_SUCCESS;
} }
errorMsg("no login name\n"); fatalError("no login name\n");
return(FALSE);
} }

View File

@ -33,8 +33,7 @@ extern int logname_main(int argc, char **argv)
my_getpwuid(user, geteuid()); my_getpwuid(user, geteuid());
if (user) { if (user) {
puts(user); puts(user);
exit(TRUE); return EXIT_SUCCESS;
} }
errorMsg("no login name\n"); fatalError("no login name\n");
return(FALSE);
} }