Browse Source

[trac3977] Tidy up some typos

Shawn Routhier 9 years ago
parent
commit
292c9a036c

+ 2 - 2
src/bin/dhcp6/dhcp6_srv.h

@@ -525,10 +525,10 @@ protected:
     /// The @c isc::dhcp_ddns::NameChangeRequest class encapsulates the request
     /// from the DHCPv6 server to the DHCP-DDNS module to perform DNS Update.
     /// The FQDN option carries response to the client about DNS updates that
-    /// server intents to perform for the DNS client. Based on this, the
+    /// server intends to perform for the DNS client. Based on this, the
     /// function will create zero or more @c isc::dhcp_ddns::NameChangeRequest
     /// objects and store them in the internal queue. Requests created by this
-    /// function are only adding or updating DNS records. If DNS updates are
+    /// function are only for adding or updating DNS records. If DNS updates are
     /// disabled, this method returns immediately.
     ///
     /// @todo Add support for multiple IAADDR options in the IA_NA.

+ 3 - 3
src/bin/dhcp6/tests/fqdn_unittest.cc

@@ -655,7 +655,7 @@ TEST_F(FqdnDhcpv6SrvTest, createNameChangeRequestsNoAddr) {
 
     ASSERT_NO_THROW(srv_->createNameChangeRequests(answer));
 
-    // We didn't add any IAs, so there should be no NameChangeRequests in th
+    // We didn't add any IAs, so there should be no NameChangeRequests in the
     // queue.
     ASSERT_EQ(0, d2_mgr_.getQueueSize());
 }
@@ -961,8 +961,8 @@ TEST_F(FqdnDhcpv6SrvTest, processRequestRelease) {
                             0, 4000);
 
     // Client may send Release message. In this case the lease should be
-    // removed and all existing DNS entries for this lease should be
-    // also removed. Therefore, we expect that single NameChangeRequest to
+    // removed and all existing DNS entries for this lease should also
+    // be removed. Therefore, we expect that single NameChangeRequest to
     // remove DNS entries is generated.
     testProcessMessage(DHCPV6_RELEASE, "otherhost.example.com",
                        "otherhost.example.com.");

+ 1 - 1
src/lib/dhcp/tests/pkt6_unittest.cc

@@ -1477,7 +1477,7 @@ TEST_F(Pkt6Test, makeLabel) {
 // Tests that the variant of makeLabel which doesn't include transaction
 // id produces expected output.
 TEST_F(Pkt6Test, makeLabelWithoutTransactionId) {
-   DuidPtr duid(new DUID(DUID::fromText("0102020202030303030303")));
+    DuidPtr duid(new DUID(DUID::fromText("0102020202030303030303")));
     HWAddrPtr hwaddr(new HWAddr(HWAddr::fromText("01:02:03:04:05:06",
                                                  HTYPE_ETHER)));
 

+ 1 - 1
src/lib/dhcpsrv/alloc_engine.h

@@ -802,7 +802,7 @@ private:
     ///
     /// @param lease Pointer to the DHCPv4 or DHCPv6 lease.
     /// @param remove_lease A boolean flag indicating if the lease should be
-    /// remove from the lease database (if true) upon reclamation.
+    /// removed from the lease database (if true) upon reclamation.
     /// @param callout_handle Pointer to the callout handle.
     /// @tparam LeasePtrPtr Lease type, i.e. @c Lease4Ptr or @c Lease6Ptr.
     template<typename LeasePtrType>

+ 2 - 2
src/lib/dhcpsrv/tests/ncr_generator_unittest.cc

@@ -83,7 +83,7 @@ public:
     /// @brief Enables DHCP-DDNS updates.
     ///
     /// Replaces the current D2ClientConfiguration with a configuration
-    /// which as updates enabled and the control options set based upon
+    /// which has updates enabled and the control options set based upon
     /// the bit mask of options.
     void enableD2() {
         D2ClientConfigPtr cfg(new D2ClientConfig());
@@ -334,7 +334,7 @@ TEST_F(NCRGenerator6Test, noHostname) {
     }
 }
 
-// Test that NameChangeRequest is not generated if the invalid hostname has
+// Test that NameChangeRequest is not generated if an invalid hostname has
 // been specified for a lease for which forward and reverse mapping has been
 // set.
 TEST_F(NCRGenerator6Test, wrongHostname) {