summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_compat.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-18 11:07:00 +0000
committerbde <bde@FreeBSD.org>1995-11-18 11:07:00 +0000
commitc8a9e0e378abbb0884185e6995cf5eea4c3ae919 (patch)
tree6607a75597a02993b7c79354faced24158ff41d2 /sys/kern/tty_compat.c
parenta22b1aac63ed3e4f6108a8548fed7a3264b7cd8f (diff)
downloadFreeBSD-src-c8a9e0e378abbb0884185e6995cf5eea4c3ae919.zip
FreeBSD-src-c8a9e0e378abbb0884185e6995cf5eea4c3ae919.tar.gz
Improved formatting.
Added a comment about possibly better handling of INPCK. Added a prototype.
Diffstat (limited to 'sys/kern/tty_compat.c')
-rw-r--r--sys/kern/tty_compat.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/kern/tty_compat.c b/sys/kern/tty_compat.c
index fabc96b..f327ce2 100644
--- a/sys/kern/tty_compat.c
+++ b/sys/kern/tty_compat.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tty_compat.c 8.1 (Berkeley) 6/10/93
- * $Id: tty_compat.c,v 1.16 1995/08/02 12:03:12 ache Exp $
+ * $Id: tty_compat.c,v 1.17 1995/08/02 12:53:14 ache Exp $
*/
/*
@@ -53,6 +53,7 @@
static int ttcompatgetflags __P((struct tty *tp));
static void ttcompatsetflags __P((struct tty *tp, struct termios *t));
static void ttcompatsetlflags __P((struct tty *tp, struct termios *t));
+static int ttcompatspeedtab __P((int speed, struct speedtab *table));
int ttydebug = 0;
@@ -80,11 +81,11 @@ static struct speedtab compatspeeds[] = {
};
static int compatspcodes[] = {
0, 50, 75, 110, 134, 150, 200, 300, 600, 1200,
- 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200
+ 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200,
};
-static
-int ttcompatspeedtab(speed, table)
+static int
+ttcompatspeedtab(speed, table)
int speed;
register struct speedtab *table;
{
@@ -96,7 +97,8 @@ int ttcompatspeedtab(speed, table)
return (1); /* 50, min and not hangup */
}
-int ttsetcompat(tp, com, data, term)
+int
+ttsetcompat(tp, com, data, term)
register struct tty *tp;
int *com;
caddr_t data;
@@ -386,6 +388,7 @@ ttcompatsetflags(tp, t)
iflag |= ISTRIP;
oflag |= OPOST;
}
+ /* XXX don't set INPCK if RAW or PASS8? */
if ((flags&(EVENP|ODDP)) == EVENP) {
iflag |= INPCK;
cflag &= ~PARODD;
OpenPOWER on IntegriCloud