From 208e58fb7594b24dc6eb8f287092d5080edabab5 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sun, 11 Aug 2019 01:51:37 +0200 Subject: Splash.c: drop return code of nxagentShowSplashWindow nobody was checking it. --- nx-X11/programs/Xserver/hw/nxagent/Splash.c | 6 ++---- nx-X11/programs/Xserver/hw/nxagent/Splash.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'nx-X11') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Splash.c b/nx-X11/programs/Xserver/hw/nxagent/Splash.c index e2e88674b..387c859ae 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Splash.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Splash.c @@ -78,7 +78,7 @@ extern Atom nxagentWMStart; extern Atom serverCutProperty; -int nxagentShowSplashWindow(Window parentWindow) +void nxagentShowSplashWindow(Window parentWindow) { XWindowAttributes getAttributes; XWindowChanges values; @@ -89,7 +89,7 @@ int nxagentShowSplashWindow(Window parentWindow) * Show splash window only when running as X2Go Agent */ if(!nxagentX2go) - return False; + return; #ifdef TEST fprintf(stderr, "nxagentShowSplashWindow: Got called.\n"); @@ -172,8 +172,6 @@ int nxagentShowSplashWindow(Window parentWindow) GetTimeInMillis() - startTime); } #endif - - return True; } void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Splash.h b/nx-X11/programs/Xserver/hw/nxagent/Splash.h index 444f1eed0..2057390fc 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Splash.h +++ b/nx-X11/programs/Xserver/hw/nxagent/Splash.h @@ -47,7 +47,7 @@ extern Window nxagentSplashWindow; extern int nxagentWMPassed; -extern int nxagentShowSplashWindow(Window); +extern void nxagentShowSplashWindow(Window); extern void nxagentRemoveSplashWindow(WindowPtr pWin); -- cgit v1.2.3