diff options
author | Matt Kraai <kraai@debian.org> | 2000-10-25 20:38:00 +0400 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-10-25 20:38:00 +0400 |
commit | ac1169b20f31f00f9ccec1957b3be3215a4e6a21 (patch) | |
tree | 726e77d8e6b4057e048cb567c3b32ca4a39d3bb8 /coreutils/logname.c | |
parent | 97d26125665756acd40b8b7360f943b33a371791 (diff) |
Cleaned up error handling and uses of TRUE/FALSE.
Diffstat (limited to 'coreutils/logname.c')
-rw-r--r-- | coreutils/logname.c | 5 |
1 files changed, 2 insertions, 3 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"); } |