]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix formatting in the 'dnsdist' namespace
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 8 Jul 2021 07:30:42 +0000 (09:30 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 26 Aug 2021 14:30:28 +0000 (16:30 +0200)
pdns/dnsdist-protocols.hh
pdns/dnsdistdist/dnsdist-protocols.cc

index 271c24178b9f7a8ebe98d3fbe380369ac2e82565..0b3b540a0a25bc7f99edcc287fb292f4f074a98a 100644 (file)
 #include <vector>
 #include <string>
 
-namespace dnsdist {
-  enum class Protocol : uint8_t { DoUDP, DoTCP, DNSCryptUDP, DNSCryptTCP, DoT, DoH };
+namespace dnsdist
+{
+enum class Protocol : uint8_t
+{
+  DoUDP,
+  DoTCP,
+  DNSCryptUDP,
+  DNSCryptTCP,
+  DoT,
+  DoH
+};
 
-  const std::string& ProtocolToString(Protocol proto);
+const std::string& ProtocolToString(Protocol proto);
 }
index 233bf4b8765b79c888f497607497eb11dd9cb90f..5c351c153ada9a2009b31a65425c1c9020c13438 100644 (file)
  */
 #include "dnsdist-protocols.hh"
 
-namespace dnsdist {
-  const std::string& ProtocolToString(Protocol proto)
-  {
-    static const std::vector<std::string> values = { "Do53 UDP", "Do53 TCP", "DNSCrypt UDP", "DNSCrypt TCP", "DNS over TLS", "DNS over HTTPS" };
-    return values.at(static_cast<int>(proto));
-  }
+namespace dnsdist
+{
+const std::string& ProtocolToString(Protocol proto)
+{
+  static const std::vector<std::string> values = {"Do53 UDP", "Do53 TCP", "DNSCrypt UDP", "DNSCrypt TCP", "DNS over TLS", "DNS over HTTPS"};
+  return values.at(static_cast<int>(proto));
+}
 }
-