[PATCH xserver 12/12] dix: use 'rc' for return code in DeliverRawEvent

Peter Hutterer peter.hutterer at who-t.net
Thu Jun 2 00:13:46 PDT 2011


Reported-by: Walter Harms <wharms at bfs.de>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dix/events.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dix/events.c b/dix/events.c
index 9225b7d..bce1cbf 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;
     }
 
-- 
1.7.5.1



More information about the xorg-devel mailing list