X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=tty.c;h=4510c29963ff88cfea1a13c508f0267c36066b2c;hb=4391a16c92cef744fc715cb7347b7b71fc8f312e;hp=bbc051f6b6ffe8395b157a756206d8191e709ac2;hpb=bf181b9338152759fd56c8009e9a962a84808e7c;p=oweals%2Fbusybox.git diff --git a/tty.c b/tty.c index bbc051f6b..4510c2996 100644 --- a/tty.c +++ b/tty.c @@ -20,9 +20,11 @@ * */ -#include "internal.h" #include +#include +#include #include +#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); }