summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorMatt Kraai2000-10-25 16:38:00 +0000
committerMatt Kraai2000-10-25 16:38:00 +0000
commitac1169b20f31f00f9ccec1957b3be3215a4e6a21 (patch)
tree726e77d8e6b4057e048cb567c3b32ca4a39d3bb8 /coreutils
parent97d26125665756acd40b8b7360f943b33a371791 (diff)
downloadbusybox-ac1169b20f31f00f9ccec1957b3be3215a4e6a21.zip
busybox-ac1169b20f31f00f9ccec1957b3be3215a4e6a21.tar.gz
Cleaned up error handling and uses of TRUE/FALSE.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/logname.c5
1 files changed, 2 insertions, 3 deletions
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");
}