From owner-cvs-all@FreeBSD.ORG Tue May 22 10:58:19 2007 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE33B16A41F; Tue, 22 May 2007 10:58:19 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id C621B13C448; Tue, 22 May 2007 10:58:19 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 1DD9E47307; Tue, 22 May 2007 06:58:19 -0400 (EDT) Date: Tue, 22 May 2007 11:58:19 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Bruce Evans In-Reply-To: <20070522164613.E5269@besplex.bde.org> Message-ID: <20070522115750.J50138@fledge.watson.org> References: <200705211816.l4LIG5io091428@repoman.freebsd.org> <20070522164613.E5269@besplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libmemstat memstat_malloc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2007 10:58:20 -0000 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