summaryrefslogtreecommitdiff
path: root/usr.bin/mg/ttyio.c
diff options
context:
space:
mode:
authorDavid Berghoff <db@cvs.openbsd.org>2005-04-03 02:09:29 +0000
committerDavid Berghoff <db@cvs.openbsd.org>2005-04-03 02:09:29 +0000
commitb6dc95251a8aa6c607dcb85f78ca2049dab538f7 (patch)
treeaaa772418d7ccfd0a020a53d1c6d7e85f7f7a47a /usr.bin/mg/ttyio.c
parentbadc0ff2f722af5ded41bf6344b8e76a32e9017d (diff)
This is a no binary change which does:
- spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification ok henning@
Diffstat (limited to 'usr.bin/mg/ttyio.c')
-rw-r--r--usr.bin/mg/ttyio.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.bin/mg/ttyio.c b/usr.bin/mg/ttyio.c
index 4ea9f0e3ab7..2858f1c99d4 100644
--- a/usr.bin/mg/ttyio.c
+++ b/usr.bin/mg/ttyio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ttyio.c,v 1.25 2003/12/04 01:37:28 vincent Exp $ */
+/* $OpenBSD: ttyio.c,v 1.26 2005/04/03 02:09:28 db Exp $ */
/*
* POSIX terminal I/O.
@@ -7,14 +7,14 @@
* keyboard characters, and write characters to the display in a barely
* buffered fashion.
*/
-#include "def.h"
+#include "def.h"
-#include <sys/types.h>
-#include <sys/time.h>
-#include <sys/ioctl.h>
-#include <fcntl.h>
-#include <termios.h>
-#include <term.h>
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/ioctl.h>
+#include <fcntl.h>
+#include <termios.h>
+#include <term.h>
#define NOBUF 512 /* Output buffer size. */
@@ -136,8 +136,8 @@ ttputc(int c)
void
ttflush(void)
{
- ssize_t written;
- char *buf = obuf;
+ ssize_t written;
+ char *buf = obuf;
if (nobuf == 0)
return;
@@ -159,7 +159,7 @@ int
ttgetc(void)
{
char c;
- int ret;
+ int ret;
do {
ret = read(0, &c, 1);
@@ -200,7 +200,7 @@ panic(char *s)
/*
* This function returns FALSE if any characters have showed up on the
- * tty before 'msec' miliseconds.
+ * tty before 'msec' milliseconds.
*/
int
ttwait(int msec)