From 9e5d72c0e936cd941e8415249479651dcce4f3ac Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Wed, 30 Oct 2019 19:45:53 +0100 Subject: Rootless.c: silence compiler warning about wrong parmeter sizes --- nx-X11/programs/Xserver/hw/nxagent/Rootless.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'nx-X11/programs/Xserver') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Rootless.c b/nx-X11/programs/Xserver/hw/nxagent/Rootless.c index 8a667f35d..56f1f72fa 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Rootless.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Rootless.c @@ -229,9 +229,9 @@ void nxagentCirculateRootlessWindows(int direction) Bool nxagentRootlessTreesMatch(void) { - Window root_return; - Window parent_return; - Window *children_return = NULL; + XlibWindow root_return; + XlibWindow parent_return; + XlibWindow *children_return = NULL; unsigned int nChildrenReturn; WindowPtr pTestWin = screenInfo.screens[0]->root -> firstChild; Bool treesMatch = True; @@ -244,14 +244,12 @@ Bool nxagentRootlessTreesMatch(void) #ifdef WARNING fprintf(stderr, "%s: WARNING! Failed QueryTree request.\n", __func__); #endif - return False; } while (nChildrenReturn > 0) { WindowPtr pW = nxagentWindowPtr(children_return[--nChildrenReturn]); - if (!pW) { pW = nxagentRootlessTopLevelWindow(children_return[nChildrenReturn]); -- cgit v1.2.3