summaryrefslogtreecommitdiff
path: root/kbd.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-28 18:37:41 +0000
committerrsc <rsc>2007-08-28 18:37:41 +0000
commit5516be1fed10ac87848668964c495266d02ae915 (patch)
treeb3f85375a1ccd347861e9eea34d644cc9824c444 /kbd.c
parente4d6a21165c01dd743a68e323fb06708ef820ab7 (diff)
downloadxv6-labs-5516be1fed10ac87848668964c495266d02ae915.tar.gz
xv6-labs-5516be1fed10ac87848668964c495266d02ae915.tar.bz2
xv6-labs-5516be1fed10ac87848668964c495266d02ae915.zip
spaces around else for rtm
Diffstat (limited to 'kbd.c')
-rw-r--r--kbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kbd.c b/kbd.c
index 6f5970f..a4a4a4e 100644
--- a/kbd.c
+++ b/kbd.c
@@ -20,12 +20,12 @@ kbd_getc(void)
if(data == 0xE0){
shift |= E0ESC;
return 0;
- }else if(data & 0x80){
+ } else if(data & 0x80){
// Key released
data = (shift & E0ESC ? data : data & 0x7F);
shift &= ~(shiftcode[data] | E0ESC);
return 0;
- }else if(shift & E0ESC){
+ } else if(shift & E0ESC){
// Last character was an E0 escape; or with 0x80
data |= 0x80;
shift &= ~E0ESC;