From 75c10f3429eb30023a16219795a85569cb48a73a Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 18 Nov 2021 22:57:10 +0100 Subject: Loop.cpp: spelling fix --- nxcomp/src/Loop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nxcomp/src/Loop.cpp') diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp index 4bbf42b91..02a18bd18 100644 --- a/nxcomp/src/Loop.cpp +++ b/nxcomp/src/Loop.cpp @@ -2762,7 +2762,7 @@ int NXTransSelect(int *resultFDs, int *errorFDs, int *setFDs, fd_set *readSet, handleCheckResultInLoop(*resultFDs, *errorFDs, *setFDs, *readSet, *writeSet, *selectTs, startTs); // - // Get time spent in select. The accouting is done + // Get time spent in select. The accounting is done // in milliseconds. This is a real problem on fast // machines where each loop is unlikely to take // more than 500 us, so consider that the results -- cgit v1.2.3 From b40d0b1aa1ba525a6c8ee225500ff81bdced04dc Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 18 Nov 2021 23:14:46 +0100 Subject: nxcomp: delete trailing whitespace --- nxcomp/src/Loop.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'nxcomp/src/Loop.cpp') diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp index 02a18bd18..d68e5bfb8 100644 --- a/nxcomp/src/Loop.cpp +++ b/nxcomp/src/Loop.cpp @@ -703,7 +703,7 @@ static void handleNegotiationInLoop(int &setFDs, fd_set &readSet, // Print the 'terminating' messages in the // session log. // - + static inline void handleTerminatingInLoop(); static inline void handleTerminatedInLoop(); @@ -1025,25 +1025,25 @@ T_timestamp nowTs; // // This is set to the main proxy process id. -// +// int lastProxy = 0; // // Set to last dialog process launched by proxy. -// +// int lastDialog = 0; // // Set to watchdog process launched by proxy. -// +// int lastWatchdog = 0; // // Set if a cache house-keeper process is running. -// +// int lastKeeper = 0; @@ -1076,7 +1076,7 @@ static int lastDestroy = 0; // // This is set to the code and local flag of the // last requested alert. -// +// static struct { @@ -4602,7 +4602,7 @@ void HandleCleanup(int code) // CleanupChildren(); - + // // Close all listeners. // @@ -7607,12 +7607,12 @@ int ReadRemoteData(int fd, char *buffer, int size, char stop) *(remoteData + remotePosition) = '\0'; nxfatal << "Loop: PANIC! Stop character missing " - << "from FD#" << fd << " after " << remotePosition + << "from FD#" << fd << " after " << remotePosition << " characters read in string '" << remoteData << "'.\n" << std::flush; cerr << "Error" << ": Stop character missing " - << "from FD#" << fd << " after " << remotePosition + << "from FD#" << fd << " after " << remotePosition << " characters read in string '" << remoteData << "'.\n"; @@ -8233,7 +8233,7 @@ int ParseEnvironmentOptions(const char *env, int force) // if the use of the shared memory extension should // not be enabled on the real X server. // - + if (control -> ProxyMode == proxy_server) { PrintOptionIgnored("local", name, value); @@ -8958,7 +8958,7 @@ int ParseFileOptions(const char *file) // char *next = options; - + while (*next != '\0') { if (isprint(*next) == 0) @@ -11472,7 +11472,7 @@ int SetStorage() sprintf(cacheSizeName, "%dk", size / 1024); } else - { + { sprintf(cacheSizeName, "%d", size); } @@ -11976,7 +11976,7 @@ int SetLink() { strcpy(linkSpeedName, "lan"); } - + nxinfo << "Loop: Link speed is " << linkSpeedName << ".\n" << std::flush; @@ -13584,7 +13584,7 @@ int ValidateArg(const char *type, const char *name, const char *value) } return number; -} +} int LowercaseArg(const char *type, const char *name, char *value) { @@ -13740,7 +13740,7 @@ static void handleCheckSessionInLoop() // channel is gone. This is the normal shutdown // procedure in the case of an internal connect- // ion to the agent. - // + // int cleanup = 0; @@ -14588,7 +14588,7 @@ static void handleNegotiationInLoop(int &setFDs, fd_set &readSet, // Check if the user requested the end of // the session. // - + if (CheckAbort() != 0) { HandleCleanup(); @@ -14752,7 +14752,7 @@ static void handleAlertInLoop() // // Use the display to which we are forwarding // the remote X connections. - // + // char *display = displayHost; @@ -15068,7 +15068,7 @@ static inline void handleAgentInLoop(int &resultFDs, int &errorFDs, int &setFDs, // Check if I/O is possible on the local // agent or the proxy descriptor. // - + if (resultFDs >= 0) { // @@ -15129,7 +15129,7 @@ static inline void handleAgentLateInLoop(int &resultFDs, int &errorFDs, int &set // descriptors may have become readable or writ- // able in the meanwhile. // - + if (resultFDs >= 0) { // -- cgit v1.2.3