BIND 10 trac1880, updated. 6c80c020b84480963355b343606b24e712a18074 [1880] Style fix

BIND 10 source code commits bind10-changes at lists.isc.org
Fri May 4 07:54:35 UTC 2012


The branch, trac1880 has been updated
       via  6c80c020b84480963355b343606b24e712a18074 (commit)
      from  d38ed98c96d650931bbe8c49f962807ef85b0245 (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 6c80c020b84480963355b343606b24e712a18074
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Fri May 4 09:53:15 2012 +0200

    [1880] Style fix
    
    We use anonymous namespace instead of static before a function.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/testutils/resource.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/testutils/resource.h b/src/lib/testutils/resource.h
index 41ebf5a..192d4a6 100644
--- a/src/lib/testutils/resource.h
+++ b/src/lib/testutils/resource.h
@@ -35,7 +35,9 @@ namespace testutils {
 /// be a circular dependency from
 /// testutils->asiolink->log->testutils. See bug #1880.
 
-static inline void
+namespace {
+
+inline void
 dontCreateCoreDumps(void)
 {
     /* Set rlimits so that no coredumps are created. As a new
@@ -48,6 +50,8 @@ dontCreateCoreDumps(void)
     EXPECT_EQ(setrlimit(RLIMIT_CORE, &core_limit), 0);
 }
 
+} // end of anonymous namespace
+
 } // end of namespace testutils
 } // end of namespace isc
 



More information about the bind10-changes mailing list