]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] spelling
authorFrancis Dupont <fdupont@isc.org>
Sat, 14 Mar 2015 14:37:19 +0000 (15:37 +0100)
committerFrancis Dupont <fdupont@isc.org>
Sat, 14 Mar 2015 14:37:19 +0000 (15:37 +0100)
12 files changed:
src/lib/util/python/gen_wiredata.py.in
src/lib/util/tests/buffer_unittest.cc
src/lib/util/tests/csv_file_unittest.cc
src/lib/util/tests/fd_share_tests.cc
src/lib/util/tests/io_utilities_unittest.cc
src/lib/util/tests/lru_list_unittest.cc
src/lib/util/tests/optional_value_unittest.cc
src/lib/util/tests/pid_file_unittest.cc
src/lib/util/tests/signal_set_unittest.cc
src/lib/util/tests/socketsession_unittest.cc
src/lib/util/threads/tests/thread_unittest.cc
src/lib/util/unittests/fork.cc

index 76e2a5def23f3be29da930269c64baa51cc3fb24..3dae921a6b744c657d95e6231ba534a0aca86b49 100755 (executable)
@@ -170,7 +170,7 @@ RRs in that order, the "custom" section would be something like this:
   [custom]
   sections: a:ns
 
-and there must be an "ns" section in addtion to "a".
+and there must be an "ns" section in addition to "a".
 
 If a sequence of two or more RRs/RDATAs of the same RR type should be
 generated, these should be uniquely indexed with the "/" separator.
@@ -183,7 +183,7 @@ follows:
 and there must be "a/1" and "a/2" sections.
 
 Another practical example that would be used for many tests is to
-generate data for a complete DNS ressponse message.  The spec file of
+generate data for a complete DNS response message.  The spec file of
 such an example configuration would look like as follows:
 
   [custom]
@@ -224,15 +224,15 @@ hexadecimal representation is accepted, for example:
   tag: 0x1234
 
 Some others are expected to be string.  A string value does not have
-to be quated:
+to be quoted:
 
   address: 192.0.2.2
 
-but can also be quoated with single quotes:
+but can also be quoted with single quotes:
 
   address: '192.0.2.2'
 
-Note 1: a string that can be interpreted as an integer must be quated.
+Note 1: a string that can be interpreted as an integer must be quoted.
 For example, if you want to set a "string" entry to "3600", it should
 be:
 
@@ -257,7 +257,7 @@ especially for complicated RR field values, for which the
 corresponding class documentation should be referenced.
 
 One special string syntax that would be worth noting is domain names,
-which would natually be used in many kinds of entries.  The simplest
+which would naturally be used in many kinds of entries.  The simplest
 form of acceptable syntax is a textual representation of domain names
 such as "example.com" (note: names are always assumed to be
 "absolute", so the trailing dot can be omitted).  But a domain name in
@@ -534,11 +534,11 @@ class DNSQuestion:
       valid domain name.
     - rrtype (int or string): The question type.  If specified
       as an integer, it must be the 16-bit RR type value of the
-      covered type.  If specifed as a string, it must be the textual
+      covered type.  If specified as a string, it must be the textual
       mnemonic of the type.
     - rrclass (int or string): The question class.  If specified as an
       integer, it must be the 16-bit RR class value of the covered
-      type.  If specifed as a string, it must be the textual mnemonic
+      type.  If specified as a string, it must be the textual mnemonic
       of the class.
     '''
     name = 'example.com.'
@@ -974,7 +974,7 @@ class NSECBASE(RR):
     - bitmap[N] (string): The Bitmap.  This must be the hexadecimal
       representation of the bitmap field.  For example, for a bitmap
       where the 7th and 15th bits (and only these bits) are set, it
-      must be '0101'.  Note also that the value must be quated with
+      must be '0101'.  Note also that the value must be quoted with
       single quatations because it could also be interpreted as an
       integer.
     '''
@@ -1121,11 +1121,11 @@ class RRSIG(RR):
     same name of attribute for the default value):
     - covered (int or string): The Type Covered field.  If specified
       as an integer, it must be the 16-bit RR type value of the
-      covered type.  If specifed as a string, it must be the textual
+      covered type.  If specified as a string, it must be the textual
       mnemonic of the type.
     - algorithm (int or string): The Algorithm field.   If specified
       as an integer, it must be the 8-bit algorithm number as defined
-      in RFC4034.  If specifed as a string, it must be one of the keys
+      in RFC4034.  If specified as a string, it must be one of the keys
       of dict_algorithm (case insensitive).
     - labels (int): The Labels field.  If omitted (the corresponding
       variable being set to None), the number of labels of "signer"
@@ -1232,7 +1232,7 @@ class TSIG(RR):
       determined by the algorithm will be used.
     - mac (int or string): The MAC field.  If specified as an integer,
       the integer value is used as the MAC, possibly with prepended
-      0's so that the total length will be mac_size.  If specifed as a
+      0's so that the total length will be mac_size.  If specified as a
       string, it is converted to a sequence of ascii codes and its
       hexadecimal representation will be used.  So, for example, if
       "mac" is set to 'abc', it will be converted to '616263'.  Note
index 624434ea1bc448ac112fea71e9fde663a509ac5d..0ca15a4f6f136aa36ed9692a8a18db12f4e96950 100644 (file)
@@ -182,7 +182,7 @@ TEST_F(BufferTest, outputBufferTrim) {
     EXPECT_THROW(obuffer.trim(3), OutOfRange);
 }
 
-TEST_F(BufferTest, outputBufferReadat) {
+TEST_F(BufferTest, outputBufferReadAt) {
     obuffer.writeData(testdata, sizeof(testdata));
     for (int i = 0; i < sizeof(testdata); i ++) {
         EXPECT_EQ(testdata[i], obuffer[i]);
index f3c7ba7516c412bd9ef945ed7389605f93e72f55..1facd1ef22378f68f0e8dfd5ad8ec6ac5585dc1f 100644 (file)
@@ -415,7 +415,7 @@ TEST_F(CSVFileTest, recreate) {
 TEST_F(CSVFileTest, validate) {
     // Create CSV file with 2 invalid rows in it: one too long, one too short.
     // Apart from that, there are two valid columns that should be read
-    // successfuly.
+    // successfully.
     writeFile("animal,age,color\n"
               "cat,10,white\n"
               "lion,15,yellow,black\n"
index bb6920456fd1a1d3a62e109707a8f98468611214..5288d9b0c3b22e85b22ccb8bc9985e1a24e7ff6f 100644 (file)
@@ -39,7 +39,7 @@ TEST(FDShare, transfer) {
         const pid_t sender(fork());
         ASSERT_NE(-1, sender);
         if (sender) { // We are in parent
-            // Close the other side of pipe, we want only writible one
+            // Close the other side of pipe, we want only writable one
             EXPECT_NE(-1, close(pipes[0]));
             // Get a process to check data
             int fd(0);
index d7d3b0eb7640626fa0f1b121873da110eee3d132..46ca36f6910d659f39111b9ff6d1289a23f3e876 100644 (file)
@@ -12,7 +12,7 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
-/// \brief Test of asiolink utilties
+/// \brief Test of asiolink utilities
 ///
 /// Tests the functionality of the asiolink utilities code by comparing them
 /// with the equivalent methods in isc::dns::[Input/Output]Buffer.
index 5f740e021ad87c15fa661e6c49324aebebf16e1c..99c32b01cba9d339ede6cf5d39bb9fe46e18de97 100644 (file)
@@ -91,7 +91,7 @@ public:
 
     /// \brief Invalidate Iterator
     ///
-    /// Marks the iterator as invalid; it can oly be set valid again by a call
+    /// Marks the iterator as invalid; it can only be set valid again by a call
     /// to setLruIterator.
     virtual void invalidateIterator() {
         valid_ = false;
@@ -188,7 +188,7 @@ TEST_F(LruListTest, Constructor) {
     EXPECT_EQ(0, lru.size());
 }
 
-// Test of Get/Set the maximum number of entrys
+// Test of Get/Set the maximum number of entries
 TEST_F(LruListTest, GetSet) {
     LruList<TestEntry>  lru(100);
     EXPECT_EQ(100, lru.getMaxSize());
@@ -284,7 +284,7 @@ TEST_F(LruListTest, Touch) {
     lru.add(entry2_);
     lru.add(entry3_);
 
-    // Check the reference counts of the entrys and the list size
+    // Check the reference counts of the entries and the list size
     EXPECT_EQ(2, entry1_.use_count());
     EXPECT_EQ(2, entry2_.use_count());
     EXPECT_EQ(2, entry3_.use_count());
@@ -301,7 +301,7 @@ TEST_F(LruListTest, Touch) {
     lru.add(entry4_);
     lru.add(entry5_);
 
-    // Check the status of the entrys and the list.
+    // Check the status of the entries and the list.
     EXPECT_EQ(2, entry1_.use_count());
     EXPECT_EQ(1, entry2_.use_count());
     EXPECT_EQ(1, entry3_.use_count());
@@ -316,7 +316,7 @@ TEST_F(LruListTest, Touch) {
     // last touch operation is valid.
     lru.touch(entry1_);
 
-    // Check this by adding two more entrys and checking reference counts
+    // Check this by adding two more entries and checking reference counts
     // to see what is stored.
     lru.add(entry6_);
     lru.add(entry7_);
@@ -393,13 +393,13 @@ TEST_F(LruListTest, Clear) {
 // Miscellaneous tests - pathological conditions
 TEST_F(LruListTest, Miscellaneous) {
 
-    // Zero size list should not allow entrys to be added
+    // Zero size list should not allow entries to be added
     LruList<TestEntry> lru_1(0);
     lru_1.add(entry1_);
     EXPECT_EQ(0, lru_1.size());
     EXPECT_EQ(1, entry1_.use_count());
 
-    // Removing an uninserted entry should not affect the list.
+    // Removing a not-inserted entry should not affect the list.
     LruList<TestEntry> lru_2(100);
     lru_2.add(entry1_);
     lru_2.add(entry2_);
@@ -414,7 +414,7 @@ TEST_F(LruListTest, Miscellaneous) {
     EXPECT_EQ(1, entry5_.use_count());
     EXPECT_EQ(3, lru_2.size());
 
-    // Touching an uninserted entry should not affect the list.
+    // Touching a not-inserted entry should not affect the list.
     lru_2.touch(entry5_);
     EXPECT_EQ(2, entry1_.use_count());
     EXPECT_EQ(2, entry2_.use_count());
index 7ef0a1f94b6ea9995fb24708ca70ed3c6eec572c..7d93f7629831e0af6316cc80dad1c21fc58bfa90 100644 (file)
@@ -80,7 +80,7 @@ TEST(OptionalValueTest, specifyValue) {
     ASSERT_TRUE(value.isSpecified());
 }
 
-// This test checks if the assignment operator assignining an actual
+// This test checks if the assignment operator assigning an actual
 // value to the optional value works as expected.
 TEST(OptionalValueTest, assignValue) {
     OptionalValue<int> value(10);
index dfcc6a231863b4668c51064b13bdcddbf1bc4a40..d966f9257c799c62a50b24a7c14e6bf6077f28e1 100644 (file)
@@ -101,7 +101,7 @@ TEST_F(PIDFileTest, writeAndDelete) {
     // Write a second known process id
     pid_file.write(20);
 
-    // And comapre the second pid
+    // And compare the second pid
     fs.open(absolutePath(TESTNAME).c_str(), std::ifstream::in);
     fs >> pid;
     EXPECT_TRUE(fs.good());
@@ -141,7 +141,7 @@ TEST_F(PIDFileTest, pidNotInUse) {
     PIDFile pid_file(absolutePath(TESTNAME));
     int pid;
 
-    // get a pid betwen 10000 and 20000
+    // get a pid between 10000 and 20000
     pid = randomizePID(10000, 10000);
 
     // write it
@@ -152,7 +152,7 @@ TEST_F(PIDFileTest, pidNotInUse) {
         return;
     }
 
-    // get a pid betwen 40000 and 50000
+    // get a pid between 40000 and 50000
     pid = randomizePID(10000, 40000);
 
     // write it
@@ -175,7 +175,7 @@ TEST_F(PIDFileTest, pidGarbage) {
     fs << "text" << std::endl;
     fs.close();
 
-    // Run the check, we expect to get an execption
+    // Run the check, we expect to get an exception
     EXPECT_THROW(pid_file.check(), PIDCantReadPID);
 }
 
index 5245176c8282f7b296e0ec2e56ce24b73df1e8e4..df1e19e39b84eaea5cbe56ed4ca36cb2459f6ee1 100644 (file)
@@ -170,7 +170,7 @@ TEST_F(SignalSetTest, remove) {
     ASSERT_NO_THROW(signal_set_.reset(new SignalSet(SIGHUP)));
     // Define another signal set and register a different signal.
     ASSERT_NO_THROW(secondary_signal_set_.reset(new SignalSet(SIGINT)));
-    // The SIGHUP has been already registsred with the other signal
+    // The SIGHUP has been already registered with the other signal
     // set, so it should not be possible to register it again.
     ASSERT_THROW(secondary_signal_set_->add(SIGHUP), SignalSetError);
     // It shouldn't be possible to remove the signal registered in a different
@@ -182,7 +182,7 @@ TEST_F(SignalSetTest, remove) {
     // Check indirectly that the SIGINT is still registered. An attempt to
     // register registered signal should result in failure.
     EXPECT_THROW(secondary_signal_set_->add(SIGINT), SignalSetError);
-    // But, we should be able to regsiter SIGHUP.
+    // But, we should be able to register SIGHUP.
     EXPECT_NO_THROW(secondary_signal_set_->add(SIGHUP));
 }
 
index 3e96915a9292da57c0c07a843003f9a5708b08eb..1f9c0776078545de96e8b9a2103aa5cffc382b61 100644 (file)
@@ -118,7 +118,7 @@ typedef pair<const struct sockaddr*, socklen_t> SockAddrInfo;
 // A helper class to convert textual representation of IP address and port
 // to a pair of sockaddr and its length (in the form of a SockAddrInfo
 // pair).  Its get method uses getaddrinfo(3) for the conversion and stores
-// the result in the addrinfo_list_ vector until the object is destructed.
+// the result in the addrinfo_list_ vector until the object is destroyed.
 // The allocated resources will be automatically freed in an RAII manner.
 class SockAddrCreator {
 public:
@@ -338,7 +338,7 @@ protected:
     }
 
     // See below
-    void checkPushAndPop(int family, int type, int protocoal,
+    void checkPushAndPop(int family, int type, int protocol,
                          const SockAddrInfo& local,
                          const SockAddrInfo& remote, const void* const data,
                          size_t data_len, bool new_connection);
index 0a8df4135d846a764b82f870f0788844e9829eb1..9f9e3fff114d6d7fbebfd578f274d066176614be 100644 (file)
@@ -23,7 +23,7 @@
 // started, but we at least check the function is run and exceptions are
 // propagated as they should.
 //
-// We run some tests mutiple times to see if there happen to be a race
+// We run some tests multiple times to see if there happen to be a race
 // condition (then it would have better chance showing up).
 //
 // The detached tests are not run as many times to prevent many threads being
index 2d5efb0b71ec510d06956b56cb5c2fadb768539d..9da0ceaab09bb926b0a7a0a6f7756e2900791eed 100644 (file)
@@ -81,7 +81,7 @@ provide_input(int *read_pipe, const void *input, const size_t length)
     pid_t pid(fork());
     if (pid) { // We are in the parent
         return pid;
-    } else { // This is in the child, just puth the data there
+    } else { // This is in the child, just puts the data there
         close(pipes[0]);
         if (!write_data(pipes[1], input, length)) {
             exit(1);