BIND 10 trac3035, updated. 90b595cca8c6b9041e9680db1d00f41f0d80423b [3035] Removed const for enums in DHCPv4 FQDN unit tests.
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Sep 11 13:27:02 UTC 2013
The branch, trac3035 has been updated
via 90b595cca8c6b9041e9680db1d00f41f0d80423b (commit)
from 42d8288e577b331401c4c785c8272a9a5a133c09 (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 90b595cca8c6b9041e9680db1d00f41f0d80423b
Author: Marcin Siodelski <marcin at isc.org>
Date: Wed Sep 11 15:26:28 2013 +0200
[3035] Removed const for enums in DHCPv4 FQDN unit tests.
The cppcheck expects that the const enum value is passed by reference and
outputs errors. In the same time it doesn't expect that non-const enum
is passed by reference. Since there is no need to pass an enum by reference
the const was removed for enum values as a workaround. It doesn't have
an impact on the test.
-----------------------------------------------------------------------
Summary of changes:
src/bin/dhcp4/tests/fqdn_unittest.cc | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/tests/fqdn_unittest.cc b/src/bin/dhcp4/tests/fqdn_unittest.cc
index c0ba0e1..f4d4130 100644
--- a/src/bin/dhcp4/tests/fqdn_unittest.cc
+++ b/src/bin/dhcp4/tests/fqdn_unittest.cc
@@ -59,7 +59,7 @@ public:
Option4ClientFqdnPtr
createClientFqdn(const uint8_t flags,
const std::string& fqdn_name,
- const Option4ClientFqdn::DomainNameType fqdn_type) {
+ Option4ClientFqdn::DomainNameType fqdn_type) {
return (Option4ClientFqdnPtr(new Option4ClientFqdn(flags,
Option4ClientFqdn::
RCODE_CLIENT(),
@@ -103,8 +103,7 @@ public:
Pkt4Ptr generatePktWithFqdn(const uint8_t msg_type,
const uint8_t fqdn_flags,
const std::string& fqdn_domain_name,
- const Option4ClientFqdn::DomainNameType
- fqdn_type,
+ Option4ClientFqdn::DomainNameType fqdn_type,
const bool include_prl,
const bool include_clientid = true) {
Pkt4Ptr pkt = Pkt4Ptr(new Pkt4(msg_type, 1234));
@@ -156,16 +155,14 @@ public:
pkt->addOption(createHostname(hostname));
return (pkt);
-
- }
-
+ }
// Test that server generates the appropriate FQDN option in response to
// client's FQDN option.
void testProcessFqdn(const Pkt4Ptr& query, const uint8_t exp_flags,
const std::string& exp_domain_name,
- const Option4ClientFqdn::DomainNameType
+ Option4ClientFqdn::DomainNameType
exp_domain_type = Option4ClientFqdn::FULL) {
ASSERT_TRUE(getClientFqdnOption(query));
More information about the bind10-changes
mailing list