]> granicus.if.org Git - pdns/commitdiff
Make the dont-throttle control channel funcs static
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 18 Apr 2019 15:31:37 +0000 (17:31 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 18 Apr 2019 15:31:37 +0000 (17:31 +0200)
pdns/rec_channel_rec.cc

index 79830b600abe5c2c68f5305a3e0079c4d6ec3033..4688b0eff437103d219fb2cbcd638b66d5d91a6f 100644 (file)
@@ -1353,18 +1353,18 @@ static string* nopFunction()
   return new string("pong\n");
 }
 
-string getDontThrottleNames() {
+static string getDontThrottleNames() {
   auto dtn = g_dontThrottleNames.getLocal();
   return dtn->toString() + "\n";
 }
 
-string getDontThrottleNetmasks() {
+static string getDontThrottleNetmasks() {
   auto dtn = g_dontThrottleNetmasks.getLocal();
   return dtn->toString() + "\n";
 }
 
 template<typename T>
-string addDontThrottleNames(T begin, T end) {
+static string addDontThrottleNames(T begin, T end) {
   if (begin == end) {
     return "No names specified, keeping existing list\n";
   }
@@ -1400,7 +1400,7 @@ string addDontThrottleNames(T begin, T end) {
 }
 
 template<typename T>
-string addDontThrottleNetmasks(T begin, T end) {
+static string addDontThrottleNetmasks(T begin, T end) {
   if (begin == end) {
     return "No netmasks specified, keeping existing list\n";
   }
@@ -1439,7 +1439,7 @@ string addDontThrottleNetmasks(T begin, T end) {
 }
 
 template<typename T>
-string clearDontThrottleNames(T begin, T end) {
+static string clearDontThrottleNames(T begin, T end) {
   if(begin == end)
     return "No names specified, doing nothing.\n";
 
@@ -1485,7 +1485,7 @@ string clearDontThrottleNames(T begin, T end) {
 }
 
 template<typename T>
-string clearDontThrottleNetmasks(T begin, T end) {
+static string clearDontThrottleNetmasks(T begin, T end) {
   if(begin == end)
     return "No netmasks specified, doing nothing.\n";