Browse Source

[3407] Fixed a couple of typos and other minor issues.

Marcin Siodelski 10 years ago
parent
commit
ade8283d32

+ 4 - 3
src/bin/d2/d2_messages.mes

@@ -135,7 +135,7 @@ its configuration from file and encountered an error.  This is likely due to
 invalid content in the configuration file.  The application should continue
 invalid content in the configuration file.  The application should continue
 to operate under its current configuration.
 to operate under its current configuration.
 
 
-% DHCP_DDNS_CFG_FILE_RELOAD_SIGNAL_RECVD OS signal %1 received, reloading configurationfrom file: %2
+% DHCP_DDNS_CFG_FILE_RELOAD_SIGNAL_RECVD OS signal %1 received, reloading configuration from file: %2
 This is an informational message indicating the application has received a signal
 This is an informational message indicating the application has received a signal
 instructing it to reload its configuration from file.
 instructing it to reload its configuration from file.
 
 
@@ -466,8 +466,9 @@ to shut down by the controller.
 This is an informational message indicating the application has received a signal
 This is an informational message indicating the application has received a signal
 instructing it to shutdown.
 instructing it to shutdown.
 
 
-% DHCP_DDNS_SIGNAL_ERROR signal handler for signal %1,  threw an unexpected exception: %2
-This is an error message indicating that the application encountered an unexpected error after receiving a signal.  This is a programmatic error and should be
+% DHCP_DDNS_SIGNAL_ERROR signal handler for signal %1, threw an unexpected exception: %2
+This is an error message indicating that the application encountered an unexpected
+error after receiving a signal.  This is a programmatic error and should be
 reported.  While The application will likely continue to operating, it may be
 reported.  While The application will likely continue to operating, it may be
 unable to respond correctly to signals.
 unable to respond correctly to signals.
 
 

+ 1 - 1
src/bin/d2/d_controller.h

@@ -293,7 +293,7 @@ protected:
     /// -# SIGHUP - instigates reloading the configuration file
     /// -# SIGHUP - instigates reloading the configuration file
     /// -# SIGINT - instigates a graceful shutdown
     /// -# SIGINT - instigates a graceful shutdown
     /// -# SIGTERM - instigates a graceful shutdown
     /// -# SIGTERM - instigates a graceful shutdown
-    /// If if received any other signal, it will issue a debug statement and
+    /// If received any other signal, it will issue a debug statement and
     /// discard it.
     /// discard it.
     /// Derivations wishing to support additional signals could override this
     /// Derivations wishing to support additional signals could override this
     /// method with one that: processes the signal if it is one of additional
     /// method with one that: processes the signal if it is one of additional

+ 2 - 2
src/bin/d2/io_service_signal.cc

@@ -105,10 +105,10 @@ IOSignalQueue::popSignal(IOSignalId sequence_id) {
                    "signal not found for sequence_id: " << sequence_id);
                    "signal not found for sequence_id: " << sequence_id);
     }
     }
 
 
-    // Save the siganl so we can return it.
+    // Save the signal so we can return it.
     IOSignalPtr signal = ((*it).second);
     IOSignalPtr signal = ((*it).second);
 
 
-    // Delete it fromt the queue.
+    // Delete it from the queue.
     signals_.erase(it);
     signals_.erase(it);
 
 
     // Return the signal.
     // Return the signal.

+ 1 - 1
src/lib/asiolink/interval_timer.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2011  Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011, 2104 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
 // purpose with or without fee is hereby granted, provided that the above

+ 2 - 2
src/lib/asiolink/interval_timer.h

@@ -1,4 +1,4 @@
-// Copyright (C) 2011  Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011, 2014  Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
 // purpose with or without fee is hereby granted, provided that the above
@@ -119,7 +119,7 @@ public:
     /// \throw isc::BadValue interval is less than or equal to 0
     /// \throw isc::BadValue interval is less than or equal to 0
     /// \throw isc::Unexpected internal runtime error
     /// \throw isc::Unexpected internal runtime error
     void setup(const Callback& cbfunc, const long interval,
     void setup(const Callback& cbfunc, const long interval,
-                    const Mode& = REPEATING);
+                    const Mode& mode = REPEATING);
 
 
     /// Cancel the timer.
     /// Cancel the timer.
     ///
     ///

+ 2 - 2
src/lib/asiolink/tests/interval_timer_unittest.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2011  Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011, 2014  Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
 // purpose with or without fee is hereby granted, provided that the above
@@ -300,7 +300,7 @@ TEST_F(IntervalTimerTest, overwriteIntervalTimer) {
     EXPECT_EQ(itimer.getInterval(), 100);
     EXPECT_EQ(itimer.getInterval(), 100);
 }
 }
 
 
-// This test verifies that timers operate correclty based on their mode.
+// This test verifies that timers operate correctly based on their mode.
 TEST_F(IntervalTimerTest, intervalModeTest) {
 TEST_F(IntervalTimerTest, intervalModeTest) {
     // Create a timer to control the duration of the test.
     // Create a timer to control the duration of the test.
     IntervalTimer test_timer(io_service_);
     IntervalTimer test_timer(io_service_);