Source-Changes-D archive

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

Re: CVS commit: src/sys/dev/i2c



On Sat, Jul 28, 2012 at 11:03:47PM +0000, Matt Thomas wrote:
 > Modified Files:
 >      src/sys/dev/i2c: g760a.c
 > 
 > Log Message:
 > Use (void *) instead of (type **) which gcc complains about.

At least one of these casts is discarding const and writing to the
const object returned by sysctl_createv().

It looks as if the const annotations in kern_sysctl.c are rubbish.
Can anyone explain what the model is supposed to be?

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index