Fixed error handling and TRUE/FALSE usage.

This commit is contained in:
Matt Kraai 2000-10-25 19:09:03 +00:00
parent 2dab174daa
commit e8c55f42c1
2 changed files with 4 additions and 6 deletions

View File

@ -35,8 +35,7 @@ extern int whoami_main(int argc, char **argv)
my_getpwuid(user, uid);
if (user) {
puts(user);
exit(TRUE);
return EXIT_SUCCESS;
}
errorMsg("cannot find username for UID %u\n", (unsigned) uid);
return(FALSE);
fatalError("cannot find username for UID %u\n", (unsigned) uid);
}

View File

@ -35,8 +35,7 @@ extern int whoami_main(int argc, char **argv)
my_getpwuid(user, uid);
if (user) {
puts(user);
exit(TRUE);
return EXIT_SUCCESS;
}
errorMsg("cannot find username for UID %u\n", (unsigned) uid);
return(FALSE);
fatalError("cannot find username for UID %u\n", (unsigned) uid);
}