[PATCH 06/19] xfree86: move a declaration down to the block it is used in.

Peter Hutterer peter.hutterer at who-t.net
Sun Sep 5 19:52:42 PDT 2010


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 hw/xfree86/common/xf86Xinput.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 1b986e3..b277986 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -682,8 +682,6 @@ xf86AllocateInput(InputDriverPtr drv, IDevPtr idev)
 void
 xf86DeleteInput(InputInfoPtr pInp, int flags)
 {
-    InputInfoPtr p;
-
     /* First check if the inputdev is valid. */
     if (pInp == NULL)
 	return;
@@ -711,7 +709,7 @@ xf86DeleteInput(InputInfoPtr pInp, int flags)
     if (pInp == xf86InputDevs)
 	xf86InputDevs = pInp->next;
     else {
-	p = xf86InputDevs;
+	InputInfoPtr p = xf86InputDevs;
 	while (p && p->next != pInp)
 	    p = p->next;
 	if (p)
-- 
1.7.2.2



More information about the xorg-devel mailing list