patch-2.1.37 linux/drivers/char/keyb_m68k.c
Next file: linux/drivers/char/keyboard.c
Previous file: linux/drivers/char/istallion.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon May 12 17:39:50 1997
- Orig file:
v2.1.36/linux/drivers/char/keyb_m68k.c
- Orig date:
Wed Apr 23 19:01:17 1997
diff -u --recursive --new-file v2.1.36/linux/drivers/char/keyb_m68k.c linux/drivers/char/keyb_m68k.c
@@ -205,7 +205,7 @@
keycode &= 0x7f;
if (up_flag) {
rep = 0;
- if(!clear_bit(keycode, key_down)) {
+ if(!test_and_clear_bit(keycode, key_down)) {
/* unexpected, but this can happen:
maybe this was a key release for a FOCUS 9000
PF key; if we want to see it, we have to clear
@@ -216,7 +216,7 @@
#endif
}
} else
- rep = set_bit(keycode, key_down);
+ rep = test_and_set_bit(keycode, key_down);
if (raw_mode)
return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov