From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,3416ea20d6a82e13 X-Google-Attributes: gid111c93,public From: Tom Michiels Subject: Re: unaligned trap help Date: 1998/12/22 Message-ID: <914362481.862804@marvin>#1/1 X-Deja-AN: 424969118 Cache-Post-Path: marvin!tomm@godard.cs.kuleuven.ac.be Content-Transfer-Encoding: 8bit References: <8qPBZSm00WB40YO1s0@andrew.cmu.edu> <913892314.564529@marvin> <913932319.277821@marvin> <75dc6k$a2p$1@news2.xs4all.nl> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@belnet.be X-Trace: naxos.belnet.be 914362481 7089 134.58.127.3 (22 Dec 1998 21:34:41 GMT) Organization: KULeuvenNet X-Cache: nntpcache 2.3.2.1 (see http://www.nntpcache.org/) Mime-Version: 1.0 NNTP-Posting-Date: 22 Dec 1998 21:34:41 GMT Newsgroups: comp.os.linux.alpha Paul Vlaar wrote: > > I looked at the code of dhcpcd 0.70 again, and: one should in fact > > replace all u_long by u_int. But then again: the pointers casted to > > u_int are not even 32bit-aligned! > Shouldn't your compiler do this for you ? I think you compiler can't know which asignments are going to be unaligned at runtime. Best he can do is being extremely carefull and considering all asignments after such casts to be unaligned. I don't think that is a good idea. But I am not an expert. Tom -- Lottery: a tax on people who are bad at math.