summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 f3c21b3..44fbc95 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 f3c21b3..44fbc95 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);
}