diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-12-02 01:07:03 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2017-12-02 01:39:41 +0100 |
commit | 3bd7e03e1adb653b4a914fe0334498c604ea6369 (patch) | |
tree | 4c2258894940f006c71f8c05887f0cbeef60d0eb /nxcomp/src | |
parent | 82e893ef22b5d8fd1b6158c5122e31eebbb1fce9 (diff) | |
download | nx-libs-3bd7e03e1adb653b4a914fe0334498c604ea6369.tar.gz nx-libs-3bd7e03e1adb653b4a914fe0334498c604ea6369.tar.bz2 nx-libs-3bd7e03e1adb653b4a914fe0334498c604ea6369.zip |
nxcomp: remove unused return values
Some functions' return values are never used anywhere, so drop them.
Diffstat (limited to 'nxcomp/src')
-rw-r--r-- | nxcomp/src/Loop.cpp | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp index 2930baf92..99ec83ec5 100644 --- a/nxcomp/src/Loop.cpp +++ b/nxcomp/src/Loop.cpp @@ -391,7 +391,7 @@ static int CheckProcess(int pid, const char *label); // Start or restart the house-keeper process. // -static int StartKeeper(); +static void StartKeeper(); // // Cleanup functions. @@ -425,10 +425,10 @@ static int SetupProxyInstance(); static int SetupAuthInstance(); static int SetupAgentInstance(); -static int SetupTcpSocket(); -static int SetupUnixSocket(); -static int SetupServiceSockets(); -static int SetupDisplaySocket(int &addr_family, sockaddr *&addr, +static void SetupTcpSocket(); +static void SetupUnixSocket(); +static void SetupServiceSockets(); +static void SetupDisplaySocket(int &addr_family, sockaddr *&addr, unsigned int &addr_length); // @@ -3735,17 +3735,16 @@ int SetupAgentInstance() return 1; } -int SetupTcpSocket() +void SetupTcpSocket() { // // Open TCP socket emulating local display. // tcpFD = ListenConnectionTCP((loopbackBind ? "localhost" : "*"), X_TCP_PORT + proxyPort, "X11"); - return 1; } -int SetupUnixSocket() +void SetupUnixSocket() { // // Open UNIX domain socket for display. @@ -3764,7 +3763,7 @@ int SetupUnixSocket() unixFD = ListenConnectionUnix(unixSocketName, "x11"); if (unixFD >= 0) chmod(unixSocketName, 0777); - return unixFD; + return; } } @@ -3782,7 +3781,7 @@ int SetupUnixSocket() // implementation. // -int SetupDisplaySocket(int &addr_family, sockaddr *&addr, +void SetupDisplaySocket(int &addr_family, sockaddr *&addr, unsigned int &addr_length) { addr_family = AF_INET; @@ -3949,7 +3948,7 @@ int SetupDisplaySocket(int &addr_family, sockaddr *&addr, close(testSocketFD); addr = (sockaddr *) xServerAddrABSTRACT; - return 1; + return; } else { @@ -4062,11 +4061,9 @@ int SetupDisplaySocket(int &addr_family, sockaddr *&addr, } delete [] display; - - return 1; } -int SetupServiceSockets() +void SetupServiceSockets() { if (control -> ProxyMode == proxy_client) { @@ -4149,8 +4146,6 @@ int SetupServiceSockets() useSlaveSocket = 0; } } - - return 1; } int ListenConnectionAny(sockaddr *addr, socklen_t addrlen, const char *label) @@ -4454,7 +4449,7 @@ int CheckProcess(int pid, const char *label) return 1; } -int StartKeeper() +void StartKeeper() { if (IsRunning(lastKeeper) == 1 || @@ -4512,8 +4507,6 @@ int StartKeeper() << "with persistent cache not enabled.\n" << std::flush; } - - return 1; } void HandleCleanupForReconnect() |