Move the warning msg after features.h gets pulled in.
[oweals/busybox.git] / tty.c
diff --git a/tty.c b/tty.c
index 2a64b149d48555480b9bedaf7937788a4f36be50..4510c29963ff88cfea1a13c508f0267c36066b2c 100644 (file)
--- a/tty.c
+++ b/tty.c
  *
  */
 
-#include "busybox.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)
 {
@@ -32,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)