From b346905cd57daa25a201a925ff0cd0078dd8a134 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sun, 18 Oct 2015 20:58:25 +0300 Subject: [PATCH] Use reinterpret_cast consistently for dnsheader --- pdns/dnswriter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnswriter.cc b/pdns/dnswriter.cc index eda9b87fc..9205108f4 100644 --- a/pdns/dnswriter.cc +++ b/pdns/dnswriter.cc @@ -60,7 +60,7 @@ DNSPacketWriter::DNSPacketWriter(vector& content, const DNSName& qname, dnsheader* DNSPacketWriter::getHeader() { - return (dnsheader*)&*d_content.begin(); + return reinterpret_cast(&*d_content.begin()); } void DNSPacketWriter::startRecord(const DNSName& name, uint16_t qtype, uint32_t ttl, uint16_t qclass, DNSResourceRecord::Place place, bool compress) -- 2.40.0