]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix "keyword 'try' is not allowed in global scope" warning 9616/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 11 Jan 2021 10:06:42 +0000 (11:06 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 11 Jan 2021 10:06:42 +0000 (11:06 +0100)
commit02d6face9edf5467c4ad3261395569b1537ce329
tree36a1637146281e8afa0fe96ea0167ec36a7fd8c0
parente3542673b3f3942c9c4489e11930e983e1ec8eb3
dnsdist: Fix "keyword 'try' is not allowed in global scope" warning

Reported by cppcheck. Using a proper block function also makes the
code easier to read.
The diff looks huge but that's mostly indentation changes, getting
rid of the changed whitespaces yields a very small diff.
pdns/dnsdist-carbon.cc
pdns/dnsdist-console.cc
pdns/dnsdist.cc
pdns/dnsdistdist/doh.cc
pdns/dnsparser.cc
pdns/remote_logger.cc