]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth geoipbackend: make local function static. Fixes #9791 9796/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 2 Dec 2020 08:39:57 +0000 (09:39 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 2 Dec 2020 08:43:30 +0000 (09:43 +0100)
modules/geoipbackend/geoipbackend.cc

index 119069b3108cdbba152e9ddca58bf34b92fd2d05..eaa99f3c32a2874b7af1e5be42180b5efb1e8566 100644 (file)
@@ -96,7 +96,7 @@ static string queryGeoIP(const Netmask& addr, GeoIPInterface::GeoIPQueryAttribut
 // validateMappingLookupFormats validates any custom format provided by the
 // user does not use the custom mapping placeholder again, else it would do an
 // infinite recursion.
-bool validateMappingLookupFormats(const vector<string>& formats) {
+static bool validateMappingLookupFormats(const vector<string>& formats) {
   string::size_type cur,last;
   for (const auto& lookupFormat : formats) {
     last=0;