From ac1169b20f31f00f9ccec1957b3be3215a4e6a21 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 25 Oct 2000 16:38:00 +0000 Subject: Cleaned up error handling and uses of TRUE/FALSE. --- coreutils/logname.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'coreutils') diff --git a/coreutils/logname.c b/coreutils/logname.c index 09ee249..89c409f 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"); } -- cgit v1.1