]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1880] Style fix
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 4 May 2012 07:53:15 +0000 (09:53 +0200)
committerMukund Sivaraman <muks@isc.org>
Fri, 4 May 2012 09:54:34 +0000 (15:24 +0530)
We use anonymous namespace instead of static before a function.

src/lib/testutils/resource.h

index 41ebf5abcf2aa44f2c552e25ef440142b93bd51d..192d4a67a96ace965a083647416ea557265b49e0 100644 (file)
@@ -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