From: Francis Dupont Date: Mon, 11 May 2015 19:50:36 +0000 (+0200) Subject: [3860] misc cleanups X-Git-Tag: trac3732a_base~10^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11e1445be9bbff6c2fd7531032344286e3096e26;p=thirdparty%2Fkea.git [3860] misc cleanups --- diff --git a/src/lib/cc/data.cc b/src/lib/cc/data.cc index d3e46e1124..2a511e5939 100644 --- a/src/lib/cc/data.cc +++ b/src/lib/cc/data.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2010, 2014 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2010, 2014, 2015 Internet Systems Consortium, Inc. ("ISC") // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above @@ -26,7 +26,6 @@ #include #include #include -#include #include // for iequals #include diff --git a/src/lib/dhcp/pkt_filter_bpf.cc b/src/lib/dhcp/pkt_filter_bpf.cc index 9db4cb17c8..69ef245d06 100644 --- a/src/lib/dhcp/pkt_filter_bpf.cc +++ b/src/lib/dhcp/pkt_filter_bpf.cc @@ -299,7 +299,7 @@ PktFilterBPF::openSocket(Iface& iface, << ver.bv_major << "." << ver.bv_minor << " Expected at least version:" << BPF_MAJOR_VERSION << "." - << BPF_MINOR_VERSION);; + << BPF_MINOR_VERSION); } // Get the size of the read buffer for this device. We will need to diff --git a/src/lib/dhcpsrv/memfile_lease_mgr.cc b/src/lib/dhcpsrv/memfile_lease_mgr.cc index 0afb22149e..4703361526 100644 --- a/src/lib/dhcpsrv/memfile_lease_mgr.cc +++ b/src/lib/dhcpsrv/memfile_lease_mgr.cc @@ -754,7 +754,7 @@ void Memfile_LeaseMgr::loadLeasesFromFiles(const std::string& filename, // future lease updates. lease_file.reset(new LeaseFileType(filename)); LeaseFileLoader::load(*lease_file, storage, - MAX_LEASE_ERRORS, false);; + MAX_LEASE_ERRORS, false); } diff --git a/src/lib/dns/tests/masterload_unittest.cc b/src/lib/dns/tests/masterload_unittest.cc index 51c999d32a..87656c5144 100644 --- a/src/lib/dns/tests/masterload_unittest.cc +++ b/src/lib/dns/tests/masterload_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2010, 2015 Internet Systems Consortium, Inc. ("ISC") // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above @@ -174,7 +174,7 @@ TEST_F(MasterLoadTest, loadRRsigs) { TEST_F(MasterLoadTest, DISABLED_loadRRWithComment) { // Comment at the end of line should be ignored and the RR should be // accepted. - rr_stream << "example.com. 3600 IN DNSKEY 256 3 7 " + rr_stream << "example.com. 3600 IN DNSKEY\t256 3 7 " "AwEAAaetidLzsKWUt4swWR8yu0wPHPiUi8LUsAD0QPWU+wzt89epO6tH " "zkMBVDkC7qphQO2hTY4hHn9npWFRw5BYubE= ; key id = 40430\n"; masterLoad(rr_stream, origin, zclass, callback); @@ -191,7 +191,7 @@ TEST_F(MasterLoadTest, DISABLED_loadRRWithComment) { TEST_F(MasterLoadTest, DISABLED_loadRRWithCommentNoSpace) { // Similar to the previous one, but there's no space before comments. // It should still work. - rr_stream << "example.com. 3600 IN DNSKEY 256 3 7 " + rr_stream << "example.com. 3600 IN DNSKEY\t256 3 7 " "AwEAAaetidLzsKWUt4swWR8yu0wPHPiUi8LUsAD0QPWU+wzt89epO6tH " "zkMBVDkC7qphQO2hTY4hHn9npWFRw5BYubE=; key id = 40430\n"; masterLoad(rr_stream, origin, zclass, callback); @@ -208,7 +208,7 @@ TEST_F(MasterLoadTest, DISABLED_loadRRWithCommentNoSpace) { TEST_F(MasterLoadTest, DISABLED_loadRRWithCommentEmptyComment) { // Similar to the previous one, but there's no data after the ; // It should still work. - rr_stream << "example.com. 3600 IN DNSKEY 256 3 7 " + rr_stream << "example.com. 3600 IN DNSKEY\t256 3 7 " "AwEAAaetidLzsKWUt4swWR8yu0wPHPiUi8LUsAD0QPWU+wzt89epO6tH " "zkMBVDkC7qphQO2hTY4hHn9npWFRw5BYubE= ;\n"; masterLoad(rr_stream, origin, zclass, callback); @@ -225,7 +225,7 @@ TEST_F(MasterLoadTest, DISABLED_loadRRWithCommentEmptyComment) { TEST_F(MasterLoadTest, DISABLED_loadRRWithCommentEmptyCommentNoSpace) { // Similar to the previous one, but there's no space before or after ; // It should still work. - rr_stream << "example.com. 3600 IN DNSKEY 256 3 7 " + rr_stream << "example.com. 3600 IN DNSKEY\t256 3 7 " "AwEAAaetidLzsKWUt4swWR8yu0wPHPiUi8LUsAD0QPWU+wzt89epO6tH " "zkMBVDkC7qphQO2hTY4hHn9npWFRw5BYubE=;\n"; masterLoad(rr_stream, origin, zclass, callback);