From: Remi Gacogne Date: Wed, 20 Feb 2019 16:02:13 +0000 (+0100) Subject: auth: Fix compilation of speedtest with GCC 8.0+ X-Git-Tag: auth-4.2.0-beta1~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c0fd241ce6b86fefbdddf5cbac38a82fa06c918;p=thirdparty%2Fpdns.git auth: Fix compilation of speedtest with GCC 8.0+ --- diff --git a/pdns/speedtest.cc b/pdns/speedtest.cc index d613f11264..1a504ef302 100644 --- a/pdns/speedtest.cc +++ b/pdns/speedtest.cc @@ -552,12 +552,11 @@ struct BigDNSPacketRefTest struct TCacheComp { - bool operator()(const pair& a, const pair& b) const + bool operator()(const pair& a, const pair& b) const { - int cmp=strcasecmp(a.first.c_str(), b.first.c_str()); - if(cmp < 0) + if(a.first < b.first) return true; - if(cmp > 0) + if(b.first < a.first) return false; return a.second < b.second;