Fixed 'ls -s' so it actually displays block sizes again.
[oweals/busybox.git] / tty.c
diff --git a/tty.c b/tty.c
index 6eebed9fbc3a444e62d00c8253c07949e219fb78..d71d8dedb3acf12966f67bb96fdcde17f4863887 100644 (file)
--- a/tty.c
+++ b/tty.c
@@ -22,6 +22,8 @@
 
 #include "busybox.h"
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include <sys/types.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);
 }