From: Peter van Dijk Date: Wed, 2 Dec 2020 08:39:57 +0000 (+0100) Subject: auth geoipbackend: make local function static. Fixes #9791 X-Git-Tag: rec-4.5.0-alpha1~96^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d73c73f9926ea784b5a443b70962b2bc7ebec435;p=thirdparty%2Fpdns.git auth geoipbackend: make local function static. Fixes #9791 --- diff --git a/modules/geoipbackend/geoipbackend.cc b/modules/geoipbackend/geoipbackend.cc index 119069b310..eaa99f3c32 100644 --- a/modules/geoipbackend/geoipbackend.cc +++ b/modules/geoipbackend/geoipbackend.cc @@ -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& formats) { +static bool validateMappingLookupFormats(const vector& formats) { string::size_type cur,last; for (const auto& lookupFormat : formats) { last=0;