Date: Tue, 22 May 2007 16:47:29 +1000 (EST) From: Bruce Evans <bde@optusnet.com.au> To: Robert Watson <rwatson@freebsd.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libmemstat memstat_malloc.c Message-ID: <20070522164613.E5269@besplex.bde.org> In-Reply-To: <200705211816.l4LIG5io091428@repoman.freebsd.org> References: <200705211816.l4LIG5io091428@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070522164613.E5269>