From a18125005d67c38a8ad7fb454571bb996664ad96 Mon Sep 17 00:00:00 2001
From: erik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Tue, 8 Feb 2000 19:58:47 +0000
Subject: Some formatting updates (ran the code through indent)  -Erik

git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 tty.c | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

(limited to 'tty.c')

diff --git a/tty.c b/tty.c
index 83abaffb5..8ac1c1fcd 100644
--- a/tty.c
+++ b/tty.c
@@ -1,3 +1,4 @@
+/* vi: set sw=4 ts=4: */
 /*
  * Mini tty implementation for busybox
  *
@@ -24,19 +25,23 @@
 #include <sys/types.h>
 
 static const char tty_usage[] = "tty\n\n"
-"Print the file name of the terminal connected to standard input.\n"
-"\t-s\tprint nothing, only return an exit status\n";
+	"Print the file name of the terminal connected to standard input.\n"
 
-extern int tty_main(int argc, char **argv) {
+	"\t-s\tprint nothing, only return an exit status\n";
+
+extern int tty_main(int argc, char **argv)
+{
 	char *tty;
 
 	if (argc > 1) {
-		if (argv[1][0] != '-' || argv[1][1] != 's') usage (tty_usage);
-	}
-	else {
-		tty = ttyname (0);
-		if (tty) puts (tty);
-		else puts ("not a tty");
+		if (argv[1][0] != '-' || argv[1][1] != 's')
+			usage(tty_usage);
+	} else {
+		tty = ttyname(0);
+		if (tty)
+			puts(tty);
+		else
+			puts("not a tty");
 	}
-	exit (isatty (0) ? TRUE : FALSE);
+	exit(isatty(0) ? TRUE : FALSE);
 }
-- 
cgit v1.2.3-55-g6feb