diff options
author | Matt Kraai <kraai@debian.org> | 2000-10-25 16:38:00 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-10-25 16:38:00 +0000 |
commit | ac1169b20f31f00f9ccec1957b3be3215a4e6a21 (patch) | |
tree | 726e77d8e6b4057e048cb567c3b32ca4a39d3bb8 | |
parent | 97d26125665756acd40b8b7360f943b33a371791 (diff) | |
download | busybox-ac1169b20f31f00f9ccec1957b3be3215a4e6a21.tar.gz |
Cleaned up error handling and uses of TRUE/FALSE.
-rw-r--r-- | coreutils/logname.c | 5 | ||||
-rw-r--r-- | 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"); } @@ -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"); } |