aboutsummaryrefslogtreecommitdiff
path: root/coreutils/logname.c
diff options
context:
space:
mode:
authorGravatar Matt Kraai <kraai@debian.org>2000-10-25 16:38:00 +0000
committerGravatar Matt Kraai <kraai@debian.org>2000-10-25 16:38:00 +0000
commitac1169b20f31f00f9ccec1957b3be3215a4e6a21 (patch)
tree726e77d8e6b4057e048cb567c3b32ca4a39d3bb8 /coreutils/logname.c
parent97d26125665756acd40b8b7360f943b33a371791 (diff)
downloadbusybox-ac1169b20f31f00f9ccec1957b3be3215a4e6a21.tar.gz
busybox-ac1169b20f31f00f9ccec1957b3be3215a4e6a21.tar.bz2
Cleaned up error handling and uses of TRUE/FALSE.
Diffstat (limited to 'coreutils/logname.c')
-rw-r--r--coreutils/logname.c5
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");
}