aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-10-25 19:09:03 +0000
committerMatt Kraai <kraai@debian.org>2000-10-25 19:09:03 +0000
commite8c55f42c12e45c7a2d72586a3738004ab94021c (patch)
treef5c2294a33ac714b607fc6f00797634a93847536
parent2dab174daa01952147322197f7c1821217c5e7c5 (diff)
downloadbusybox-e8c55f42c12e45c7a2d72586a3738004ab94021c.tar.gz
Fixed error handling and TRUE/FALSE usage.
-rw-r--r--coreutils/whoami.c5
-rw-r--r--whoami.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/coreutils/whoami.c b/coreutils/whoami.c
index f3c21b3f5..44fbc950b 100644
--- a/coreutils/whoami.c
+++ b/coreutils/whoami.c
@@ -35,8 +35,7 @@ extern int whoami_main(int argc, char **argv)
my_getpwuid(user, uid);
if (user) {
puts(user);
- exit(TRUE);
+ return EXIT_SUCCESS;
}
- errorMsg("cannot find username for UID %u\n", (unsigned) uid);
- return(FALSE);
+ fatalError("cannot find username for UID %u\n", (unsigned) uid);
}
diff --git a/whoami.c b/whoami.c
index f3c21b3f5..44fbc950b 100644
--- a/whoami.c
+++ b/whoami.c
@@ -35,8 +35,7 @@ extern int whoami_main(int argc, char **argv)
my_getpwuid(user, uid);
if (user) {
puts(user);
- exit(TRUE);
+ return EXIT_SUCCESS;
}
- errorMsg("cannot find username for UID %u\n", (unsigned) uid);
- return(FALSE);
+ fatalError("cannot find username for UID %u\n", (unsigned) uid);
}