diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-07-13 03:36:02 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-07-13 03:36:02 +0000 |
commit | 87309e1fb22b5882e84817b5c2caf90d982c68e3 (patch) | |
tree | 9fd3eb631ba46fd06bea894a2c6231f29ba076d7 /sys/arch/hppa/stand/libsa/itecons.c | |
parent | 07a8b6f9545c2ed7df49149f08adfdc77b31ff34 (diff) |
libsa/itecons.c
Diffstat (limited to 'sys/arch/hppa/stand/libsa/itecons.c')
-rw-r--r-- | sys/arch/hppa/stand/libsa/itecons.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/arch/hppa/stand/libsa/itecons.c b/sys/arch/hppa/stand/libsa/itecons.c index a361e3b9c0e..842c2f5df35 100644 --- a/sys/arch/hppa/stand/libsa/itecons.c +++ b/sys/arch/hppa/stand/libsa/itecons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: itecons.c,v 1.2 1998/07/08 21:34:35 mickey Exp $ */ +/* $OpenBSD: itecons.c,v 1.3 1998/07/13 03:36:00 mickey Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -169,20 +169,17 @@ ite_getc(dev) return(0x100); if (stash) { - if (dev & 0x80) - return stash; - else { - c = stash; + c = stash; + if (!(dev & 0x80)) stash = 0; - return stash; - } + return c; } do { err = (*kyiodc)(KY_HPA, IODC_IO_CONSIN, KY_SPA, KY_LAYER, pdcbuf, 0, cnbuf, 1, 0); l = pdcbuf[0]; - stash = c = cnbuf[0]; + c = cnbuf[0]; #ifdef DEBUG if (debug && err < 0) printf("KBD input error: %d", err); @@ -206,8 +203,8 @@ ite_getc(dev) if (debug > 3) printf("kbd: \'%c\' (0x%x)\n", c, c); #endif - if (!(dev & 0x80)) - stash = 0; + if (dev & 0x80) + stash = c; return (c); } |