From: Peter van Dijk Date: Wed, 14 Apr 2021 16:26:09 +0000 (+0200) Subject: auto, reinterpret_cast X-Git-Tag: rec-4.4.4~7^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc3f16a331b8ebfa208a77e7ba2454b7d431fb42;p=thirdparty%2Fpdns.git auto, reinterpret_cast Co-authored-by: Remi Gacogne (cherry picked from commit de769ee3f68d9e940cd10610e7a68b03ce339bda) --- diff --git a/pdns/filterpo.cc b/pdns/filterpo.cc index ce2867f041..ff3f6bdff9 100644 --- a/pdns/filterpo.cc +++ b/pdns/filterpo.cc @@ -698,7 +698,7 @@ DNSName DNSFilterEngine::Zone::maskToRPZ(const Netmask& nm) else { DNSName temp; static_assert(sizeof(addr.sin6.sin6_addr.s6_addr) == sizeof(uint16_t) * 8); - uint16_t *src = (uint16_t*) &addr.sin6.sin6_addr.s6_addr; + auto src = reinterpret_cast(&addr.sin6.sin6_addr.s6_addr); std::array elems; // this routine was adopted from glibc's inet_ntop6, written by Paul Vixie