From: Pieter Lexis Date: Thu, 18 Apr 2019 15:31:37 +0000 (+0200) Subject: Make the dont-throttle control channel funcs static X-Git-Tag: rec-4.2.0-beta1~7^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d75d3d939d9bf3329696a4e98148008c4944158;p=pdns Make the dont-throttle control channel funcs static --- diff --git a/pdns/rec_channel_rec.cc b/pdns/rec_channel_rec.cc index 79830b600..4688b0eff 100644 --- a/pdns/rec_channel_rec.cc +++ b/pdns/rec_channel_rec.cc @@ -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 -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 -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 -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 -string clearDontThrottleNetmasks(T begin, T end) { +static string clearDontThrottleNetmasks(T begin, T end) { if(begin == end) return "No netmasks specified, doing nothing.\n";