summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-04 16:33:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-04 16:33:06 +0000
commit78bcf4ed585ca5191e11d3677cf8d16c290defd5 (patch)
tree5daa201dfbc1d8580584a4ac348caa3d07839f9d /sys
parent671efad95c176e9943242c7042ba24ac37fe915f (diff)
KNF
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty_subr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c
index 74db2eef62d..802c71c78d5 100644
--- a/sys/kern/tty_subr.c
+++ b/sys/kern/tty_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty_subr.c,v 1.6 1996/10/07 19:55:27 deraadt Exp $ */
+/* $OpenBSD: tty_subr.c,v 1.7 2000/08/04 16:33:05 deraadt Exp $ */
/* $NetBSD: tty_subr.c,v 1.13 1996/02/09 19:00:43 christos Exp $ */
/*
@@ -120,9 +120,9 @@ void
clfree(clp)
struct clist *clp;
{
- if(clp->c_cs)
+ if (clp->c_cs)
FREE(clp->c_cs, M_TTYS);
- if(clp->c_cq)
+ if (clp->c_cq)
FREE(clp->c_cq, M_TTYS);
clp->c_cs = clp->c_cq = (u_char *)0;
}
@@ -298,7 +298,7 @@ putc(c, clp)
#if defined(DIAGNOSTIC) || 1
printf("putc: required clalloc\n");
#endif
- if(clalloc(clp, 1024, 1)) {
+ if (clalloc(clp, 1024, 1)) {
out:
splx(s);
return -1;
@@ -345,7 +345,7 @@ clrbits(cp, off, len)
register int i;
u_char mask;
- if(len==1) {
+ if (len==1) {
clrbit(cp, off);
return;
}
@@ -396,7 +396,7 @@ b_to_q(cp, count, clp)
#if defined(DIAGNOSTIC) || 1
printf("b_to_q: required clalloc\n");
#endif
- if(clalloc(clp, 1024, 1))
+ if (clalloc(clp, 1024, 1))
goto out;
}
clp->c_cf = clp->c_cl = clp->c_cs;
@@ -493,7 +493,7 @@ firstc(clp, c)
return NULL;
cp = clp->c_cf;
*c = *cp & 0xff;
- if(clp->c_cq) {
+ if (clp->c_cq) {
#ifdef QBITS
if (isset(clp->c_cq, cp - clp->c_cs))
*c |= TTY_QUOTE;