diff --git a/src/bin/clear.c b/src/bin/clear.c index 634002692ae..eec22358012 100644 --- a/src/bin/clear.c +++ b/src/bin/clear.c @@ -2,7 +2,7 @@ // // Copyright (c) 2001-2003, OpenBeOS // -// This software is part of the OpenBeOS distribution and is covered +// This software is part of the OpenBeOS distribution and is covered // by the OpenBeOS license. // // diff --git a/src/bin/tty.c b/src/bin/tty.c index fdcdc6524cd..06e576dc93e 100644 --- a/src/bin/tty.c +++ b/src/bin/tty.c @@ -2,7 +2,7 @@ // // Copyright (c) 2001-2003, OpenBeOS // -// This software is part of the OpenBeOS distribution and is covered +// This software is part of the OpenBeOS distribution and is covered // by the OpenBeOS license. // // @@ -31,23 +31,23 @@ usage() int main(int argc, char *argv[]) { - + if (argc > 2) usage(); - + else { bool silent = false; - + if (argc == 2) { if (!strcmp(argv[1], "-s")) silent = true; else usage(); } - + if (!silent) printf("%s\n", ttyname(STDIN_FILENO)); } - + return (isatty(STDIN_FILENO) ? 0 : 1); }