Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 2014 14:08:59 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Warner Losh <imp@bsdimp.com>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers <src-committers@freebsd.org>, Bruce Evans <brde@optusnet.com.au>
Subject:   Re: svn commit: r266238 - head/contrib/ldns/ldns
Message-ID:  <86lhu0k3ok.fsf@nine.des.no>
In-Reply-To: <4A83A11B-EFDD-46C5-B9D4-D81EBD4FAAAE@gmail.com> (Warner Losh's message of "Sat, 17 May 2014 00:04:43 -0400")
References:  <201405161532.s4GFWGvh006504@svn.freebsd.org> <20140517112645.N925@besplex.bde.org> <86ppjdjg2c.fsf@nine.des.no> <4A83A11B-EFDD-46C5-B9D4-D81EBD4FAAAE@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh <imp@bsdimp.com> writes:
> Dag-Erling Sm=C3=B8rgrav <des@des.no> writes:
> > Do our standard endianness conversion functions handle unaligned
> > accesses?
> No. The warning appears to be telling us something that=E2=80=99s being
> papered over.

No, the conversion is fine, they were just casting away the const
qualifier before reading from the pointer (or rather, forgetting to
preserve the qualifier in the cast).

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86lhu0k3ok.fsf>