From: Remi Gacogne Date: Fri, 29 Oct 2021 12:46:43 +0000 (+0200) Subject: Remove tabs in misc.cc X-Git-Tag: rec-4.6.0-beta1~12^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9562824bf3e294e50e6d41bc427509fc6544c58;p=thirdparty%2Fpdns.git Remove tabs in misc.cc --- diff --git a/pdns/misc.cc b/pdns/misc.cc index 1779729bf2..c243386a35 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -1154,26 +1154,26 @@ uint64_t udpErrorStats(const std::string& str) stringtok(parts, line, " \n\t\r"); if (parts.size() < 7) { - break; + break; } if (str == "udp-rcvbuf-errors") { - return std::stoull(parts.at(5)); + return std::stoull(parts.at(5)); } else if (str == "udp-sndbuf-errors") { - return std::stoull(parts.at(6)); + return std::stoull(parts.at(6)); } else if (str == "udp-noport-errors") { - return std::stoull(parts.at(2)); + return std::stoull(parts.at(2)); } else if (str == "udp-in-errors") { - return std::stoull(parts.at(3)); + return std::stoull(parts.at(3)); } else if (parts.size() >= 8 && str == "udp-in-csum-errors") { return std::stoull(parts.at(7)); } else { - return 0; + return 0; } } } @@ -1209,7 +1209,6 @@ uint64_t udp6ErrorStats(const std::string& str) } std::vector parts; - parts.clear(); stringtok(parts, line, " \n\t\r"); if (parts.size() != 2) {