Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sun Flush tty only when K_TXBUSY is not set.
details: https://anonhg.NetBSD.org/src/rev/b2df7b4fda1f
branches: trunk
changeset: 757103:b2df7b4fda1f
user: jym <jym%NetBSD.org@localhost>
date: Sat Aug 14 20:52:05 2010 +0000
description:
Flush tty only when K_TXBUSY is not set.
'!' takes precedence over bitwise operation '&', so use parenthesis.
diffstat:
sys/dev/sun/sunkbd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5f76dae4a708 -r b2df7b4fda1f sys/dev/sun/sunkbd.c
--- a/sys/dev/sun/sunkbd.c Sat Aug 14 20:49:21 2010 +0000
+++ b/sys/dev/sun/sunkbd.c Sat Aug 14 20:52:05 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunkbd.c,v 1.27 2008/03/29 19:15:36 tsutsui Exp $ */
+/* $NetBSD: sunkbd.c,v 1.28 2010/08/14 20:52:05 jym Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.27 2008/03/29 19:15:36 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.28 2010/08/14 20:52:05 jym Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -255,7 +255,7 @@
log(LOG_ERR, "%s: input error (0x%x)\n",
device_xname(k->k_kbd.k_dev), c);
c &= TTY_CHARMASK;
- if (!k->k_txflags & K_TXBUSY) {
+ if (!(k->k_txflags & K_TXBUSY)) {
ttyflush(tp, FREAD | FWRITE);
goto send_reset;
}
Home |
Main Index |
Thread Index |
Old Index