From: Matt Kraai Date: Wed, 25 Oct 2000 16:38:00 +0000 (-0000) Subject: Cleaned up error handling and uses of TRUE/FALSE. X-Git-Tag: 0_48~148 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ac1169b20f31f00f9ccec1957b3be3215a4e6a21;p=oweals%2Fbusybox.git Cleaned up error handling and uses of TRUE/FALSE. --- diff --git a/coreutils/logname.c b/coreutils/logname.c index 09ee24928..89c409f00 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c @@ -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"); } diff --git a/logname.c b/logname.c index 09ee24928..89c409f00 100644 --- a/logname.c +++ b/logname.c @@ -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"); }