Commit 9e5d72c0 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Rootless.c: silence compiler warning about wrong parmeter sizes

parent 63f6c1e7
...@@ -229,9 +229,9 @@ void nxagentCirculateRootlessWindows(int direction) ...@@ -229,9 +229,9 @@ void nxagentCirculateRootlessWindows(int direction)
Bool nxagentRootlessTreesMatch(void) Bool nxagentRootlessTreesMatch(void)
{ {
Window root_return; XlibWindow root_return;
Window parent_return; XlibWindow parent_return;
Window *children_return = NULL; XlibWindow *children_return = NULL;
unsigned int nChildrenReturn; unsigned int nChildrenReturn;
WindowPtr pTestWin = screenInfo.screens[0]->root -> firstChild; WindowPtr pTestWin = screenInfo.screens[0]->root -> firstChild;
Bool treesMatch = True; Bool treesMatch = True;
...@@ -244,14 +244,12 @@ Bool nxagentRootlessTreesMatch(void) ...@@ -244,14 +244,12 @@ Bool nxagentRootlessTreesMatch(void)
#ifdef WARNING #ifdef WARNING
fprintf(stderr, "%s: WARNING! Failed QueryTree request.\n", __func__); fprintf(stderr, "%s: WARNING! Failed QueryTree request.\n", __func__);
#endif #endif
return False; return False;
} }
while (nChildrenReturn > 0) while (nChildrenReturn > 0)
{ {
WindowPtr pW = nxagentWindowPtr(children_return[--nChildrenReturn]); WindowPtr pW = nxagentWindowPtr(children_return[--nChildrenReturn]);
if (!pW) if (!pW)
{ {
pW = nxagentRootlessTopLevelWindow(children_return[nChildrenReturn]); pW = nxagentRootlessTopLevelWindow(children_return[nChildrenReturn]);
......
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