From: Pieter Lexis Date: Fri, 22 May 2015 16:49:25 +0000 (+0200) Subject: Align DNSRecord on 8-byte boundries X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~77^2~4^2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=249fb4c2fd83303f423deb31c8ac46dce20c1ada;p=thirdparty%2Fpdns.git Align DNSRecord on 8-byte boundries --- diff --git a/pdns/dnsparser.hh b/pdns/dnsparser.hh index 4a09c75f09..6ce7d09df1 100644 --- a/pdns/dnsparser.hh +++ b/pdns/dnsparser.hh @@ -263,12 +263,12 @@ protected: struct DNSRecord { std::string d_label; + std::shared_ptr d_content; uint16_t d_type; uint16_t d_class; uint32_t d_ttl; uint16_t d_clen; - enum {Answer=1, Nameserver, Additional} d_place; - std::shared_ptr d_content; + enum : uint8_t {Answer=1, Nameserver, Additional} d_place; bool operator<(const DNSRecord& rhs) const {