Test applets containing numbers in their name. Thanks to Larry Doolittle.
[oweals/busybox.git] / tty.c
diff --git a/tty.c b/tty.c
index 6eebed9fbc3a444e62d00c8253c07949e219fb78..2a64b149d48555480b9bedaf7937788a4f36be50 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)
@@ -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);
 }