From ac1169b20f31f00f9ccec1957b3be3215a4e6a21 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 25 Oct 2000 16:38:00 +0000 Subject: [PATCH] Cleaned up error handling and uses of TRUE/FALSE. --- coreutils/logname.c | 5 ++--- logname.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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"); } -- 2.25.1