From 0c0fd241ce6b86fefbdddf5cbac38a82fa06c918 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 20 Feb 2019 17:02:13 +0100 Subject: [PATCH] auth: Fix compilation of speedtest with GCC 8.0+ --- pdns/speedtest.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pdns/speedtest.cc b/pdns/speedtest.cc index d613f1126..1a504ef30 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; -- 2.40.0