diff options
Diffstat (limited to 'toys/tty.c')
-rw-r--r-- | toys/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,12 +6,12 @@ #include "toys.h" -int tty_main(void) +void tty_main(void) { char *name = ttyname(0); if (!toys.optflags) { if (name) puts(name); else puts("Not a tty"); } - return !name; + toys.exitval = !name; } |