Remove advertising clauses in accordance with
[oweals/busybox.git] / coreutils / tty.c
index bbc051f6b6ffe8395b157a756206d8191e709ac2..4510c29963ff88cfea1a13c508f0267c36066b2c 100644 (file)
  *
  */
 
-#include "internal.h"
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include <sys/types.h>
+#include "busybox.h"
 
 extern int tty_main(int argc, char **argv)
 {
@@ -30,7 +32,7 @@ extern int tty_main(int argc, char **argv)
 
        if (argc > 1) {
                if (argv[1][0] != '-' || argv[1][1] != 's')
-                       usage(tty_usage);
+                       show_usage();
        } else {
                tty = ttyname(0);
                if (tty)
@@ -38,5 +40,5 @@ extern int tty_main(int argc, char **argv)
                else
                        puts("not a tty");
        }
-       return(isatty(0) ? TRUE : FALSE);
+       return(isatty(0) ? EXIT_SUCCESS : EXIT_FAILURE);
 }