Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2009 11:29:12 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197400 - head/sys/dev/kbd
Message-ID:  <200909221129.n8MBTCiD019011@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Tue Sep 22 11:29:11 2009
New Revision: 197400
URL: http://svn.freebsd.org/changeset/base/197400

Log:
  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

Modified:
  head/sys/dev/kbd/kbd.c

Modified: head/sys/dev/kbd/kbd.c
==============================================================================
--- head/sys/dev/kbd/kbd.c	Tue Sep 22 07:10:23 2009	(r197399)
+++ head/sys/dev/kbd/kbd.c	Tue Sep 22 11:29:11 2009	(r197400)
@@ -728,7 +728,7 @@ genkbd_event(keyboard_t *kbd, int event,
 	size_t len;
 	u_char *cp;
 	int mode;
-	int c;
+	u_int c;
 
 	/* assert(KBD_IS_VALID(kbd)) */
 	sc = (genkbd_softc_t *)arg;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909221129.n8MBTCiD019011>