BIND 10 trac931_2, updated. b2c418d1d6aed9e2eb599941218e1f8c0d13a445 [trac931] constify as much as possible
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue May 24 22:38:09 UTC 2011
The branch, trac931_2 has been updated
via b2c418d1d6aed9e2eb599941218e1f8c0d13a445 (commit)
via 48fab55d59089444ac9dbd81ea3c6978f55f9474 (commit)
via efb25130e7c98335f72741cb62c9b3cf4ab076b3 (commit)
from e37672ef8e814456d53772220d885c91941db7bd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b2c418d1d6aed9e2eb599941218e1f8c0d13a445
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Tue May 24 15:23:20 2011 -0700
[trac931] constify as much as possible
commit 48fab55d59089444ac9dbd81ea3c6978f55f9474
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Tue May 24 13:56:11 2011 -0700
[trac931] clanup: removed redundant blank lines
commit efb25130e7c98335f72741cb62c9b3cf4ab076b3
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Tue May 24 13:34:40 2011 -0700
[trac931] comment cleanup
-----------------------------------------------------------------------
Summary of changes:
src/lib/config/ccsession.cc | 8 ++++----
src/lib/config/ccsession.h | 3 +--
src/lib/config/tests/ccsession_unittests.cc | 2 --
3 files changed, 5 insertions(+), 8 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/config/ccsession.cc b/src/lib/config/ccsession.cc
index 7734f99..02472ce 100644
--- a/src/lib/config/ccsession.cc
+++ b/src/lib/config/ccsession.cc
@@ -383,7 +383,7 @@ ModuleCCSession::fetchRemoteSpec(const std::string& module, bool is_filename,
ConstElementPtr cmd(createCommand("get_module_spec",
Element::fromJSON("{\"module_name\": \"" + module +
"\"}")));
- unsigned int seq = session_.group_sendmsg(cmd, "ConfigManager");
+ const unsigned int seq = session_.group_sendmsg(cmd, "ConfigManager");
// Wait for the answer
ConstElementPtr env, answer;
@@ -413,15 +413,15 @@ ModuleCCSession::addRemoteConfig(const std::string& spec_name,
{
// First get the module name, specification and default config
ModuleSpec rmod_spec;
- std::string module_name(fetchRemoteSpec(spec_name, spec_is_filename,
- rmod_spec));
+ const std::string module_name(fetchRemoteSpec(spec_name, spec_is_filename,
+ rmod_spec));
ConfigData rmod_config(rmod_spec);
// Get the current configuration values from config manager
ConstElementPtr cmd(createCommand("get_config",
Element::fromJSON("{\"module_name\": \"" +
module_name + "\"}")));
- unsigned int seq = session_.group_sendmsg(cmd, "ConfigManager");
+ const unsigned int seq = session_.group_sendmsg(cmd, "ConfigManager");
ConstElementPtr env, answer;
session_.group_recvmsg(env, answer, false, seq);
diff --git a/src/lib/config/ccsession.h b/src/lib/config/ccsession.h
index 04caa96..379d055 100644
--- a/src/lib/config/ccsession.h
+++ b/src/lib/config/ccsession.h
@@ -190,8 +190,7 @@ public:
const char* socket_path = NULL
);
- /// Start asynchronous receiving new commands and configuration changes
- /// asynchronously.
+ /// Start receiving new commands and configuration changes asynchronously.
///
/// This method must be called only once, and only when the ModuleCCSession
/// was constructed with start_immediately being false. Otherwise
diff --git a/src/lib/config/tests/ccsession_unittests.cc b/src/lib/config/tests/ccsession_unittests.cc
index 0d1df96..44f98bd 100644
--- a/src/lib/config/tests/ccsession_unittests.cc
+++ b/src/lib/config/tests/ccsession_unittests.cc
@@ -658,8 +658,6 @@ TEST_F(CCSessionTest, delayedStart) {
throw;
}
}
-
-
}
}
More information about the bind10-changes
mailing list