Subject: Re: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: source-changes
Date: 11/10/2000 15:21:47
In article <200011100635.IAA26826@netbsd.hut.fi>,
Takuya SHIOZAKI <tshiozak@netbsd.org> wrote:
> 
> Module Name:	basesrc
> Committed By:	tshiozak
> Date:		Fri Nov 10 06:35:46 UTC 2000
> 
> Modified Files:
> 	basesrc/include: stddef.h
> 
> Log Message:
> u_long -> unsigned long in "offsetof" macro.
> Using u_long causes <stddef.h> to undesirably depend on <sys/types.h> .
> BTY: Why is the cast needed?

Because casting from a pointer to an integer of different size is
a dubious practice, so we need to tell lint that we know what we
are doing. Casting from a long to an int is allowed.

christos