From 052002e6f2bbd4f99af8cae8ecad585f39ce52ce Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 22 Sep 2009 11:29:11 +0000 Subject: [PATCH] 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 --- sys/dev/kbd/kbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/kbd/kbd.c b/sys/dev/kbd/kbd.c index 57df93445708..0813676d01df 100644 --- a/sys/dev/kbd/kbd.c +++ b/sys/dev/kbd/kbd.c @@ -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;