mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Use an unsigned integer for storing the key code.
It seems Clang breaks when checking for SPCLKEY, which is now 0x80000000. Using an unsigned integer fixes this. This is also consistent with other pieces of kbd/syscons code, because these also use u_int. Submitted by: rdivacky
This commit is contained in:
parent
2f66eb1e60
commit
052002e6f2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197400
@ -728,7 +728,7 @@ genkbd_event(keyboard_t *kbd, int event, void *arg)
|
||||
size_t len;
|
||||
u_char *cp;
|
||||
int mode;
|
||||
int c;
|
||||
u_int c;
|
||||
|
||||
/* assert(KBD_IS_VALID(kbd)) */
|
||||
sc = (genkbd_softc_t *)arg;
|
||||
|
Loading…
Reference in New Issue
Block a user