Browse Source

[5134] Fixed some typos, commentaries and copyright dates.

Marcin Siodelski 8 years ago
parent
commit
e868d5b1fd

+ 1 - 1
configure.ac

@@ -1638,7 +1638,7 @@ AC_CONFIG_FILES([compatcheck/Makefile
                  src/bin/admin/tests/mysql_tests.sh
                  src/bin/admin/tests/mysql_tests.sh
                  src/bin/admin/tests/pgsql_tests.sh
                  src/bin/admin/tests/pgsql_tests.sh
                  src/bin/admin/tests/cql_tests.sh
                  src/bin/admin/tests/cql_tests.sh
-		 src/bin/agent/tests/test_libraries.h
+                 src/bin/agent/tests/test_libraries.h
                  src/hooks/Makefile
                  src/hooks/Makefile
                  src/hooks/dhcp/Makefile
                  src/hooks/dhcp/Makefile
                  src/hooks/dhcp/user_chk/Makefile
                  src/hooks/dhcp/user_chk/Makefile

+ 1 - 1
src/bin/agent/ctrl_agent_cfg_mgr.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this

+ 17 - 7
src/bin/agent/ctrl_agent_cfg_mgr.h

@@ -1,4 +1,4 @@
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -72,28 +72,30 @@ public:
         ctrl_sockets_[static_cast<uint8_t>(type)] = control_socket;
         ctrl_sockets_[static_cast<uint8_t>(type)] = control_socket;
     }
     }
 
 
-    /// @brief sets http-host parameter
+    /// @brief Sets http-host parameter
     ///
     ///
-    /// @param host hostname to be used during http socket creation
+    /// @param host Hostname or IP address where the agent's HTTP service
+    /// will be available.
     void setHost(const std::string& host) {
     void setHost(const std::string& host) {
         http_host_ = host;
         http_host_ = host;
     }
     }
 
 
-    /// @brief returns http-host parameter
+    /// @brief Returns http-host parameter
     ///
     ///
-    /// @return name of the http-host parameter
+    /// @return Hostname or IP address where the agent's HTTP service is
+    /// available.
     std::string getHost() const {
     std::string getHost() const {
         return (http_host_);
         return (http_host_);
     }
     }
 
 
     /// @brief Sets http port
     /// @brief Sets http port
     ///
     ///
-    /// @param port sets the TCP port the http server will listen on
+    /// @param port sets the TCP port the HTTP server will listen on
     void setPort(const uint16_t port) {
     void setPort(const uint16_t port) {
         http_port_ = port;
         http_port_ = port;
     }
     }
 
 
-    /// @brief Returns the TCP post the http server will listen on
+    /// @brief Returns the TCP post the HTTP server will listen on
     uint16_t getPort() const {
     uint16_t getPort() const {
         return (http_port_);
         return (http_port_);
     }
     }
@@ -114,6 +116,8 @@ public:
 
 
 private:
 private:
     /// @brief Private assignment operator to avoid potential for slicing.
     /// @brief Private assignment operator to avoid potential for slicing.
+    ///
+    /// @param rhs Context to be assigned.
     CtrlAgentCfgContext& operator=(const CtrlAgentCfgContext& rhs);
     CtrlAgentCfgContext& operator=(const CtrlAgentCfgContext& rhs);
 
 
     /// Socket information will be stored here (for all supported servers)
     /// Socket information will be stored here (for all supported servers)
@@ -160,6 +164,12 @@ public:
 
 
 protected:
 protected:
 
 
+    /// @brief Parses configuration of the Control Agent.
+    ///
+    /// @param config Pointer to a configuration specified for the agent.
+    /// @param check_only Boolean flag indicating if this method should
+    /// only verify correctness of the provided conifiguration.
+    /// @return Pointer to a result of configuration parsing.
     virtual isc::data::ConstElementPtr
     virtual isc::data::ConstElementPtr
     parse(isc::data::ConstElementPtr config, bool check_only);
     parse(isc::data::ConstElementPtr config, bool check_only);
 
 

+ 1 - 1
src/bin/agent/ctrl_agent_process.h

@@ -1,4 +1,4 @@
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this

+ 2 - 2
src/bin/agent/tests/ctrl_agent_cfg_mgr_unittest.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -198,7 +198,7 @@ public:
         EXPECT_TRUE(checkAnswer(expected_answer));
         EXPECT_TRUE(checkAnswer(expected_answer));
     }
     }
 
 
-    /// @brief Reeplaces %LIBRARY% with specified library name
+    /// @brief Replaces %LIBRARY% with specified library name
     ///
     ///
     /// @param config input config text (should contain "%LIBRARY%" string)
     /// @param config input config text (should contain "%LIBRARY%" string)
     /// @param lib_name %LIBRARY% will be replaced with that name
     /// @param lib_name %LIBRARY% will be replaced with that name

+ 1 - 1
src/lib/cc/tests/command_interpreter_unittests.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2009-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2009-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this

+ 1 - 1
src/lib/process/d_controller.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this

+ 1 - 1
src/lib/process/d_process.h

@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this

+ 1 - 1
src/lib/process/testutils/d_test_stubs.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this

+ 1 - 1
src/lib/process/testutils/d_test_stubs.h

@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // License, v. 2.0. If a copy of the MPL was not distributed with this