[PATCH 13/29] barriers: Clean up code

Peter Hutterer peter.hutterer at who-t.net
Tue Dec 11 23:19:06 PST 2012


From: "Jasper St. Pierre" <jstpierre at mecheye.net>

Rename a variable. This is to make the diff in the next commit cleaner.

Signed-off-by: Jasper St. Pierre <jstpierre at mecheye.net>
---
 Xi/xibarriers.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Xi/xibarriers.c b/Xi/xibarriers.c
index 75ea4f7..b62a18e 100644
--- a/Xi/xibarriers.c
+++ b/Xi/xibarriers.c
@@ -538,12 +538,12 @@ CreatePointerBarrierClient(ClientPtr client,
 static int
 BarrierFreeBarrier(void *data, XID id)
 {
-    struct PointerBarrierClient *barrier;
+    struct PointerBarrierClient *c;
 
-    barrier = container_of(data, struct PointerBarrierClient, barrier);
-    xorg_list_del(&barrier->entry);
+    c = container_of(data, struct PointerBarrierClient, barrier);
+    xorg_list_del(&c->entry);
 
-    free(barrier);
+    free(c);
     return Success;
 }
 
-- 
1.8.0.1



More information about the xorg-devel mailing list