From: Matt Kraai Date: Wed, 25 Oct 2000 19:09:03 +0000 (-0000) Subject: Fixed error handling and TRUE/FALSE usage. X-Git-Tag: 0_48~142 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e8c55f42c12e45c7a2d72586a3738004ab94021c;p=oweals%2Fbusybox.git Fixed error handling and TRUE/FALSE usage. --- diff --git a/coreutils/whoami.c b/coreutils/whoami.c index f3c21b3f5..44fbc950b 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c @@ -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); } diff --git a/whoami.c b/whoami.c index f3c21b3f5..44fbc950b 100644 --- a/whoami.c +++ b/whoami.c @@ -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); }