From: JINMEI Tatuya Date: Mon, 16 Apr 2012 21:02:50 +0000 (-0700) Subject: [1781] small editorial/style fixes: updated comment and use unnamed namespace. X-Git-Tag: trac2351_base~226^2~116^2~26^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=136e63b8234f46a46c4278e4ccfe9712a76ebfc9;p=thirdparty%2Fkea.git [1781] small editorial/style fixes: updated comment and use unnamed namespace. the previous "TODO" comment was a leftover when I moved it from the datasrc test. also moved the callback function to the unnamed namespace as it doesn't have to be referrable from others. --- diff --git a/src/lib/testutils/dnsmessage_test.cc b/src/lib/testutils/dnsmessage_test.cc index a2a64d6108..244f43381d 100644 --- a/src/lib/testutils/dnsmessage_test.cc +++ b/src/lib/testutils/dnsmessage_test.cc @@ -86,10 +86,8 @@ matchRdata(const char*, const char*, } return (::testing::AssertionSuccess()); } -} -// TODO: maybe we should share this stuff -// A helper callback of masterLoad() used in InMemoryZoneFinderTest. +// A helper callback of masterLoad() used by textToRRset() below. void setRRset(RRsetPtr rrset, RRsetPtr* rrsetp) { if (*rrsetp) { @@ -98,6 +96,7 @@ setRRset(RRsetPtr rrset, RRsetPtr* rrsetp) { } *rrsetp = rrset; } +} RRsetPtr textToRRset(const string& text_rrset, const RRClass& rrclass) {