[X2Go-Commits] [nx-libs] 01/23: nxcomp: fix spelling errors as reported by codespell

git-admin at x2go.org git-admin at x2go.org
Sat Jun 16 15:30:46 CEST 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit a32554dbf9ad4b42bbfa007bb5abde14e4a9ceee
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Tue Apr 10 21:05:29 2018 +0200

    nxcomp: fix spelling errors as reported by codespell
---
 nxcomp/src/Agent.h               | 2 +-
 nxcomp/src/Children.cpp          | 2 +-
 nxcomp/src/ClientChannel.cpp     | 4 ++--
 nxcomp/src/Control.cpp           | 2 +-
 nxcomp/src/DecodeBuffer.cpp      | 2 +-
 nxcomp/src/GenericReadBuffer.cpp | 2 +-
 nxcomp/src/Keeper.cpp            | 2 +-
 nxcomp/src/Loop.cpp              | 8 ++++----
 nxcomp/src/MD5.c                 | 2 +-
 nxcomp/src/Proxy.h               | 2 +-
 nxcomp/src/PutPackedImage.h      | 2 +-
 nxcomp/src/Statistics.cpp        | 6 +++---
 12 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/nxcomp/src/Agent.h b/nxcomp/src/Agent.h
index 3e1a50a..a7c8b63 100644
--- a/nxcomp/src/Agent.h
+++ b/nxcomp/src/Agent.h
@@ -50,7 +50,7 @@ class Agent
   //
   // Must be created by passing the fake descriptor that
   // will be used for simulating socket communication
-  // betwen the agent and the proxy. I/O will take place
+  // between the agent and the proxy. I/O will take place
   // by copying data to the agent's read and write buf-
   // fers.
   //
diff --git a/nxcomp/src/Children.cpp b/nxcomp/src/Children.cpp
index e586292..2431e53 100644
--- a/nxcomp/src/Children.cpp
+++ b/nxcomp/src/Children.cpp
@@ -893,7 +893,7 @@ int NXTransKeeper(int caches, int images, const char *root)
   }
 
   //
-  // Take care of the persisten image cache.
+  // Take care of the persistent image cache.
   // Run a number of iterations and then exit,
   // so we can keep the memory consumption
   // low. The parent will check our exit code
diff --git a/nxcomp/src/ClientChannel.cpp b/nxcomp/src/ClientChannel.cpp
index 1c63548..f67ee0a 100644
--- a/nxcomp/src/ClientChannel.cpp
+++ b/nxcomp/src/ClientChannel.cpp
@@ -3850,7 +3850,7 @@ int ClientChannel::handleWrite(const unsigned char *message, unsigned int length
               //
               // Use differential compression at startup and plain
               // data compression later. Check X_ListFonts message
-              // for an explaination.
+              // for an explanation.
               //
 
               MessageStore *messageStore = serverStore_ ->
@@ -5974,7 +5974,7 @@ int ClientChannel::handleRestart(T_sequence_mode mode, int resource)
   // integer number (0-255) referred to as the 'resource' field.
   //
   // Before the proxy will be able to report the status of the
-  // split, the agent will have to close the sequence by issueing
+  // split, the agent will have to close the sequence by issuing
   // an end-split. The proxy will then report the result of the
   // operation, so that the agent will have the option of suspend-
   // ing the client or marking the drawable as dirty and take
diff --git a/nxcomp/src/Control.cpp b/nxcomp/src/Control.cpp
index 75fd56e..d894e65 100644
--- a/nxcomp/src/Control.cpp
+++ b/nxcomp/src/Control.cpp
@@ -131,7 +131,7 @@
 #define SHMEM_TIMEOUT                            200
 //
 // Before closing down the proxy, wait for the
-// given amount of miliseconds to let all the
+// given amount of milliseconds to let all the
 // running applications to close down their
 // connections.
 //
diff --git a/nxcomp/src/DecodeBuffer.cpp b/nxcomp/src/DecodeBuffer.cpp
index 4c1530d..09ed673 100644
--- a/nxcomp/src/DecodeBuffer.cpp
+++ b/nxcomp/src/DecodeBuffer.cpp
@@ -476,7 +476,7 @@ const unsigned char *DecodeBuffer::decodeMemory(unsigned int numBytes)
   //
   // Force ourselves to a byte boundary.
   // Is up to application to ensure data
-  // is word alligned when needed.
+  // is word aligned when needed.
   //
 
   if (srcMask_ != 0x80)
diff --git a/nxcomp/src/GenericReadBuffer.cpp b/nxcomp/src/GenericReadBuffer.cpp
index 7821715..dd8bfd8 100644
--- a/nxcomp/src/GenericReadBuffer.cpp
+++ b/nxcomp/src/GenericReadBuffer.cpp
@@ -52,7 +52,7 @@ int GenericReadBuffer::locateMessage(const unsigned char *start,
                                                      unsigned int &trailerLength)
 {
   //
-  // We don't care about the endianess
+  // We don't care about the endianness
   // in generic channels.
   //
 
diff --git a/nxcomp/src/Keeper.cpp b/nxcomp/src/Keeper.cpp
index 4babbe8..d945e6a 100644
--- a/nxcomp/src/Keeper.cpp
+++ b/nxcomp/src/Keeper.cpp
@@ -100,7 +100,7 @@ File::File()
 
 //
 // TODO: This class can leak industrial amounts of memory.
-// I'm 100% sure that the desctructor is called and that
+// I'm 100% sure that the destructor is called and that
 // also the string pointed in the File structure is dele-
 // ted. Everything is logged, but still the memory is not
 // freed. This is less a problem on Windows, where the me-
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index f22053c..ddffcd1 100644
--- a/nxcomp/src/Loop.cpp
+++ b/nxcomp/src/Loop.cpp
@@ -751,7 +751,7 @@ static char sessionDir[DEFAULT_STRING_LENGTH] = { 0 };
 
 //
 // Log files for errors and statistics. Error log is
-// the place where we print also debug informations.
+// the place where we print also debug information.
 // Both files are closed, deleted and reopened as
 // their size exceed the limit set in control class.
 // The session log is not reopened, as it is used by
@@ -3100,7 +3100,7 @@ int InitBeforeNegotiation()
   SetDescriptors();
 
   //
-  // Set local endianess.
+  // Set local endianness.
   //
 
   unsigned int test = 1;
@@ -5664,7 +5664,7 @@ void HandleSignal(int signal)
       // if (agentFD[1] != -1)
       // {
       //   cerr << "Info" << ": Received signal 'SIGPIPE'. "
-      //        << "Closing agent conection.\n";
+      //        << "Closing agent connection.\n";
       //
       //   shutdown(agentFD[1], SHUT_RDWR);
       // }
@@ -6636,7 +6636,7 @@ int ConnectToRemote(ChannelEndPoint &socketAddress)
   // Show an alert after 20 seconds and use the
   // same timeout to interrupt the connect. The
   // retry timeout is incremental, starting from
-  // 100 miliseconds up to 1 second.
+  // 100 milliseconds up to 1 second.
   //
 
   int alertTimeout   = 20000;
diff --git a/nxcomp/src/MD5.c b/nxcomp/src/MD5.c
index 7255ca5..43a2793 100644
--- a/nxcomp/src/MD5.c
+++ b/nxcomp/src/MD5.c
@@ -60,7 +60,7 @@
 #include <string.h>
 
 /*
- * Try to determine the CPU endianess
+ * Try to determine the CPU endianness
  * at compile time.
  */
 
diff --git a/nxcomp/src/Proxy.h b/nxcomp/src/Proxy.h
index ea60c82..2c4353f 100644
--- a/nxcomp/src/Proxy.h
+++ b/nxcomp/src/Proxy.h
@@ -184,7 +184,7 @@ class Proxy
   static const int TOKEN_TYPES = 3;
 
   //
-  // Lenght of buffer we use to add our
+  // Length of buffer we use to add our
   // control messages plus the length of
   // the data frame.
   //
diff --git a/nxcomp/src/PutPackedImage.h b/nxcomp/src/PutPackedImage.h
index d28ad39..9e35596 100644
--- a/nxcomp/src/PutPackedImage.h
+++ b/nxcomp/src/PutPackedImage.h
@@ -47,7 +47,7 @@
 #define PUTPACKEDIMAGE_ENABLE_COMPRESS                         0
 
 //
-// We can't exceed lenght of 262144 bytes.
+// We can't exceed a length of 262144 bytes.
 //
 
 #define PUTPACKEDIMAGE_DATA_LIMIT                              262144 - 40
diff --git a/nxcomp/src/Statistics.cpp b/nxcomp/src/Statistics.cpp
index 68673ff..c6f6658 100644
--- a/nxcomp/src/Statistics.cpp
+++ b/nxcomp/src/Statistics.cpp
@@ -348,9 +348,9 @@ void Statistics::addCompressedBytes(unsigned int bytesIn, unsigned int bytesOut)
 // receives the data from the upper layers. The reason
 // is that data can be compressed by the stream com-
 // pressor, so we can become aware of the new bitrate
-// only afer having flushed the ZLIB stream. This also
-// means that, to have a reliable estimate, we need to
-// flush the link often.
+// only after having flushed the ZLIB stream. This also
+// means that, to have a reliable estimatation, we need
+// to flush the link often.
 //
 
 void Statistics::updateBitrate(int bytes)

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list