Subject: Re: CVS commit: src/common/lib/libprop
To: None <source-changes@NetBSD.org>
From: Christian Biere <christianbiere@gmx.de>
List: source-changes
Date: 10/19/2006 17:46:21
Jason Thorpe wrote:
> >Log Message:
> >sysconf() returns long, which isn't neccessarily assignment-compatible
> >with size_t, as evidenced by sh5, so add an explicit cast.
>
> The sh5 port is wrong. It should be unsigned long in both the LP64
> and the ILP32 case. E.g. sparc/sparc64 does this.
And i386 should have "size_t == unsigned long" as well. It also helps a lot
to prevent format string bugs as I pointed out in PR lib/34516.
--
Christian