Remove yet more kernel header dependancies.
[oweals/busybox.git] / whoami.c
index f9d3f286a995678b324d50081c4bc4628be2b96f..950f52fb2e54feefe7aab388a63b14b901c9c6c3 100644 (file)
--- a/whoami.c
+++ b/whoami.c
 #include <stdio.h>
 #include <pwd.h>
 
-static const char whoami_usage[] = "whoami\n\n"
-       "Prints the user name associated with the current effective user id.\n";
+static const char whoami_usage[] = "whoami\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\nPrints the user name associated with the current effective user id.\n"
+#endif
+       ;
 
 extern int whoami_main(int argc, char **argv)
 {
@@ -42,5 +45,5 @@ extern int whoami_main(int argc, char **argv)
        }
        fprintf(stderr, "%s: cannot find username for UID %u\n", argv[0],
                        (unsigned) uid);
-       exit(FALSE);
+       return(FALSE);
 }