[PATCH] dix: rename shadowing loop variable in TouchResizeQueue

Peter Hutterer peter.hutterer at who-t.net
Tue May 15 03:28:14 PDT 2012


second 'i' shadows the function-wide one, rename to 'j'

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dix/touch.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dix/touch.c b/dix/touch.c
index eeb158e..95a7b06 100644
--- a/dix/touch.c
+++ b/dix/touch.c
@@ -103,11 +103,11 @@ TouchResizeQueue(ClientPtr client, pointer closure)
 
         tmp = realloc(dev->last.touches, size * sizeof(*dev->last.touches));
         if (tmp) {
-            int i;
+            int j;
 
             dev->last.touches = tmp;
-            for (i = dev->last.num_touches; i < size; i++)
-                TouchInitDDXTouchPoint(dev, &dev->last.touches[i]);
+            for (j = dev->last.num_touches; j < size; j++)
+                TouchInitDDXTouchPoint(dev, &dev->last.touches[j]);
             dev->last.num_touches = size;
         }
 
-- 
1.7.10.1



More information about the xorg-devel mailing list