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());
if (user) {
puts(user);
exit(TRUE);
return EXIT_SUCCESS;
}
errorMsg("no login name\n");
return(FALSE);
fatalError("no login name\n");
}

View File

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