Ok, this is a pretty major update to sh.c. I renamed all the variables and
[oweals/busybox.git] / tty.c
diff --git a/tty.c b/tty.c
index 3a318ebbab5f5c1a40ac04e748a1a9b2b9ca86fa..46201d3e6e65a5fe24636ac0981a7b1f92533aaa 100644 (file)
--- a/tty.c
+++ b/tty.c
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/types.h>
 
-static const char tty_usage[] = "tty\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-       "\nPrint the file name of the terminal connected to standard input.\n\n"
-       "Options:\n"
-       "\t-s\tprint nothing, only return an exit status\n"
-#endif
-       ;
-
 extern int tty_main(int argc, char **argv)
 {
        char *tty;
@@ -46,5 +38,5 @@ extern int tty_main(int argc, char **argv)
                else
                        puts("not a tty");
        }
-       exit(isatty(0) ? TRUE : FALSE);
+       return(isatty(0) ? EXIT_SUCCESS : EXIT_FAILURE);
 }