Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/netinet6



> On Mon, Mar 10, 2008 at 07:54:51AM +0900, YAMAMOTO Takashi wrote:
> > > On Sun, Mar 09, 2008 at 10:05:50PM +0000, YAMAMOTO Takashi wrote:
> > > > Log Message:
> > > > in6_cksum: constify
> > > 
> > > I disagree with the offsetof part of the change. The original statement
> > > was written that way so that the compiler will explicitly *not* assume
> > > that the alignment of the data is correct.
> > > 
> > > Joerg
> > 
> > do you mean the use of ->ip6_src can make the compiler
> > believe uint32_t alignment?
> 
> I think so, yes.
> 
> Joerg

if so, the use of (uint16_t *) isn't safe either, is it?

YAMAMOTO Takashi


Home | Main Index | Thread Index | Old Index