summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-09-02 10:39:24 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-09-10 09:08:54 +1000
commitb0da1bc509446a714eb2b29cbd35d43b1e5187ed (patch)
tree82e5ffa43b0a157f8ffe5b9ee2fdeb19dddff435
parentcd7059db4a766bc9d03d7968aebeba8542e6c6c0 (diff)
xfree86: move a declaration down to the block it is used in.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Fernando Carrijo <fcarrijo@freedesktop.org>
-rw-r--r--hw/xfree86/common/xf86Xinput.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 1b986e3af..b2779864b 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)