summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pts.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-11-01 16:48:33 +0000
committerjhb <jhb@FreeBSD.org>2006-11-01 16:48:33 +0000
commit49d3deb803ef1ccaf6932074eabe55ad48eaf268 (patch)
tree37a6a170ad96560bac88a99e71cbbae0aab36259 /sys/kern/tty_pts.c
parentd55b9d74e2609fa7a02b33e452f38c364c4d4720 (diff)
downloadFreeBSD-src-49d3deb803ef1ccaf6932074eabe55ad48eaf268.zip
FreeBSD-src-49d3deb803ef1ccaf6932074eabe55ad48eaf268.tar.gz
Comment and style tweak.
Diffstat (limited to 'sys/kern/tty_pts.c')
-rw-r--r--sys/kern/tty_pts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c
index 12ab537..38e2c26 100644
--- a/sys/kern/tty_pts.c
+++ b/sys/kern/tty_pts.c
@@ -123,7 +123,7 @@ static struct cdevsw ptc_cdevsw = {
/*-
* Once a tty is allocated, it cannot (currently) be freed. As such,
* we keep a global list of ptys that have been used so we can recycle
- * them. An another list is provided for released pts, whiiich are
+ * them. Another list is provided for released pts, which are
* not currently allocated, permitting reuse. pt_flags holds state
* associated with a particular session, so isn't overloaded for this.
* When a pty descriptor is unused, its number is set to -1 giving
@@ -276,7 +276,7 @@ ptsopen(struct cdev *dev, int flag, int devtype, struct thread *td)
if (tp->t_oproc) /* Ctrlr still around. */
ttyld_modem(tp, 1);
while ((tp->t_state & TS_CARR_ON) == 0) {
- if (flag&FNONBLOCK)
+ if (flag & FNONBLOCK)
break;
error = ttysleep(tp, TSA_CARR_ON(tp), TTIPRI | PCATCH,
"ptsopn", 0);
OpenPOWER on IntegriCloud