Blame SOURCES/0003-fakehid-Use-the-same-constant-as-declared.patch

19062e
From a354165e58f937ee12c16ab48ce334b664c8f163 Mon Sep 17 00:00:00 2001
19062e
From: Bastien Nocera <hadess@hadess.net>
19062e
Date: Sun, 17 Jun 2012 01:29:01 +0200
19062e
Subject: [PATCH 3/3] fakehid: Use the same constant as declared
19062e
19062e
ps3remote_keymap[] uses 0xff as the max value, so should we.
19062e
---
19062e
 input/fakehid.c |    2 +-
19062e
 1 file changed, 1 insertion(+), 1 deletion(-)
19062e
19062e
diff --git a/input/fakehid.c b/input/fakehid.c
19062e
index a125356..a758413 100644
19062e
--- a/input/fakehid.c
19062e
+++ b/input/fakehid.c
19062e
@@ -335,7 +335,7 @@ static int ps3remote_setup_uinput(struct fake_input *fake,
19062e
 	}
19062e
 
19062e
 	/* enabling keys */
19062e
-	for (i = 0; i < 256; i++)
19062e
+	for (i = 0; i < 0xff; i++)
19062e
 		if (ps3remote_keymap[i] != KEY_RESERVED)
19062e
 			if (ioctl(fake->uinput, UI_SET_KEYBIT,
19062e
 						ps3remote_keymap[i]) < 0) {
19062e
-- 
19062e
1.7.10
19062e