summaryrefslogtreecommitdiff
path: root/dix/events.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-05-30 09:47:06 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-09-29 14:09:41 +1000
commit52c9b59a9fed6abfeca775a7a04133cee18eac0b (patch)
treec76a8fe25538a4e0bff4f824f135196d0792d3df /dix/events.c
parentb6b1f1b514bf14ddf6b265b8d4551f892ded0dd2 (diff)
dix: use 'rc' for return code in DeliverRawEvent
Reported-by: Walter Harms <wharms@bfs.de> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'dix/events.c')
-rw-r--r--dix/events.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dix/events.c b/dix/events.c
index 2112a47db..6b74b1aa9 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -2284,14 +2284,14 @@ DeliverRawEvent(RawDeviceEvent *ev, DeviceIntPtr device)
{
GrabPtr grab = device->deviceGrab.grab;
xEvent *xi;
- int i;
+ int i, rc;
int filter;
- i = EventToXI2((InternalEvent*)ev, (xEvent**)&xi);
- if (i != Success)
+ rc = EventToXI2((InternalEvent*)ev, (xEvent**)&xi);
+ if (rc != Success)
{
ErrorF("[Xi] %s: XI2 conversion failed in %s (%d)\n",
- __func__, device->name, i);
+ __func__, device->name, rc);
return;
}