From: Roy Marples Date: Wed, 5 Oct 2016 14:06:20 +0000 (+0000) Subject: Remove packed from these structs. X-Git-Tag: v7.0.0-beta1~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18fa35e173bb2863faa3bc4f17e9a503cc6a2641;p=thirdparty%2Fdhcpcd.git Remove packed from these structs. --- diff --git a/ipv6nd.c b/ipv6nd.c index 103b332f..7ec87b5e 100644 --- a/ipv6nd.c +++ b/ipv6nd.c @@ -62,7 +62,8 @@ struct nd_opt_rdnss { /* RDNSS option RFC 6106 */ uint16_t nd_opt_rdnss_reserved; uint32_t nd_opt_rdnss_lifetime; /* followed by list of IP prefixes */ -} __packed; +}; +__CTASSERT(sizeof(struct nd_opt_rdnss) == 8); #endif #ifndef ND_OPT_DNSSL @@ -73,7 +74,8 @@ struct nd_opt_dnssl { /* DNSSL option RFC 6106 */ uint16_t nd_opt_dnssl_reserved; uint32_t nd_opt_dnssl_lifetime; /* followed by list of DNS servers */ -} __packed; +}; +__CTASSERT(sizeof(struct nd_opt_rdnss) == 8); #endif /* Impossible options, so we can easily add extras */