Commit 43754803 authored by Peter Hutterer's avatar Peter Hutterer

test: don't shadow parameter 'len'

protocol-xiquerydevice.c:226:25: warning: declaration of ‘len’ shadows a
parameter [-Wshadow]
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: default avatarChase Douglas <chase.douglas@canonical.com>
parent 1bafc9f2
......@@ -223,7 +223,7 @@ reply_XIQueryDevice_data(ClientPtr client, int len, char *data, void *closure)
any->type == XIValuatorClass);
if (any->type == XIButtonClass) {
int len;
int l;
xXIButtonInfo *bi = (xXIButtonInfo *) any;
if (client->swapped)
......@@ -231,10 +231,9 @@ reply_XIQueryDevice_data(ClientPtr client, int len, char *data, void *closure)
assert(bi->num_buttons == devices.vcp->button->numButtons);
len =
2 + bi->num_buttons +
l = 2 + bi->num_buttons +
bytes_to_int32(bits_to_bytes(bi->num_buttons));
assert(bi->length == len);
assert(bi->length == l);
}
else if (any->type == XIValuatorClass) {
xXIValuatorInfo *vi = (xXIValuatorInfo *) any;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment