Commit 43579a3b authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mihai Moldovan

Events.c: move variable to inner scope

parent 5487d52f
...@@ -251,7 +251,6 @@ Bool nxagentRootlessTreesMatch() ...@@ -251,7 +251,6 @@ Bool nxagentRootlessTreesMatch()
Window parent_return; Window parent_return;
Window *children_return; Window *children_return;
unsigned int nChildrenReturn; unsigned int nChildrenReturn;
WindowPtr pW;
WindowPtr pTestWin = screenInfo.screens[0]->root -> firstChild; WindowPtr pTestWin = screenInfo.screens[0]->root -> firstChild;
Bool treesMatch = True; Bool treesMatch = True;
Status result; Status result;
...@@ -270,7 +269,7 @@ Bool nxagentRootlessTreesMatch() ...@@ -270,7 +269,7 @@ Bool nxagentRootlessTreesMatch()
while (nChildrenReturn > 0) while (nChildrenReturn > 0)
{ {
pW = nxagentWindowPtr(children_return[--nChildrenReturn]); WindowPtr pW = nxagentWindowPtr(children_return[--nChildrenReturn]);
if (!pW) if (!pW)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment