From 5d75d3d939d9bf3329696a4e98148008c4944158 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 18 Apr 2019 17:31:37 +0200 Subject: [PATCH] Make the dont-throttle control channel funcs static --- pdns/rec_channel_rec.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pdns/rec_channel_rec.cc b/pdns/rec_channel_rec.cc index 79830b600a..4688b0eff4 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"; -- 2.47.2