Skip to content

Commit

Permalink
Automatic whitespace cleanup. No functional change.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmadia committed Feb 16, 2013
1 parent 43b74aa commit fbcd94b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/bin/clear.c
Expand Up @@ -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.
//
//
Expand Down
12 changes: 6 additions & 6 deletions src/bin/tty.c
Expand Up @@ -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.
//
//
Expand Down Expand Up @@ -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);
}

0 comments on commit fbcd94b

Please sign in to comment.