On Tue, 22 May 2007, Bruce Evans wrote:
On Mon, 21 May 2007, Robert Watson wrote:
rwatson 2007-05-21 18:16:04 UTC
FreeBSD src repository
Modified files:
lib/libmemstat memstat_malloc.c
Log:
Make pointer argument to kread_string() const since the kernel structure
field is const, and then employ __DECONST before getting into the kvm
code. This eliminates a gcc 4.2 warning about losing constification.
__DECONST advice from: sam
Should know better than to use __DECONST: C programmers.
This basically trickles up from libkvm, which presumably also wants to be
const-poisoned.
Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"