Automatic whitespace cleanup. No functional change.
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Copyright (c) 2001-2003, OpenBeOS
|
// 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.
|
// by the OpenBeOS license.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|||||||
+6
-6
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Copyright (c) 2001-2003, OpenBeOS
|
// 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.
|
// by the OpenBeOS license.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@@ -31,23 +31,23 @@ usage()
|
|||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
if (argc > 2)
|
if (argc > 2)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
else {
|
else {
|
||||||
bool silent = false;
|
bool silent = false;
|
||||||
|
|
||||||
if (argc == 2) {
|
if (argc == 2) {
|
||||||
if (!strcmp(argv[1], "-s"))
|
if (!strcmp(argv[1], "-s"))
|
||||||
silent = true;
|
silent = true;
|
||||||
else
|
else
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!silent)
|
if (!silent)
|
||||||
printf("%s\n", ttyname(STDIN_FILENO));
|
printf("%s\n", ttyname(STDIN_FILENO));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (isatty(STDIN_FILENO) ? 0 : 1);
|
return (isatty(STDIN_FILENO) ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user