diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-29 17:58:28 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-29 17:58:28 +0100 |
commit | 9c0b5859e6cc4b7a0e925fde8665990281b265d3 (patch) | |
tree | 8994dbe0942d56c9a7cf470fc3b2316d1f91e0a3 /input | |
parent | 1ce81e1e0794a5d619016e17b33b533b614fc6a9 (diff) |
Fix mostly every warning caused by -Wsign-compare
Diffstat (limited to 'input')
-rw-r--r-- | input/device.c | 2 | ||||
-rw-r--r-- | input/fakehid.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/input/device.c b/input/device.c index 3f9e0691..a2a3c38d 100644 --- a/input/device.c +++ b/input/device.c @@ -472,7 +472,7 @@ static void epox_endian_quirk(unsigned char *data, int size) */ unsigned char pattern[] = { 0x05, 0x07, 0x19, 0x00, 0x2a, 0x00, 0xff, 0x15, 0x00, 0x26, 0x00, 0xff }; - int i; + unsigned int i; if (!data) return; diff --git a/input/fakehid.c b/input/fakehid.c index 05bbea1d..900399d2 100644 --- a/input/fakehid.c +++ b/input/fakehid.c @@ -147,7 +147,8 @@ static int ps3remote_decode(char *buff, int size, unsigned int *value) { static unsigned int lastkey = 0; static unsigned int lastmask = 0; - int retval, mask, i; + unsigned int i, mask; + int retval; guint8 key; if (size < 12) { |