From owner-cvs-all Sat Mar 10 4:33:46 2001 Delivered-To: cvs-all@freebsd.org Received: from elvis.mu.org (elvis.mu.org [207.154.226.10]) by hub.freebsd.org (Postfix) with ESMTP id 6E69C37B71A; Sat, 10 Mar 2001 04:33:42 -0800 (PST) (envelope-from billf@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1098) id 02F1381D03; Sat, 10 Mar 2001 06:33:31 -0600 (CST) Date: Sat, 10 Mar 2001 06:33:31 -0600 From: Bill Fumerola To: Bill Fumerola Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys cdefs.h Message-ID: <20010310063331.B31752@elvis.mu.org> References: <200103101205.f2AC5us05909@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103101205.f2AC5us05909@freefall.freebsd.org>; from billf@FreeBSD.org on Sat, Mar 10, 2001 at 04:05:56AM -0800 X-Operating-System: FreeBSD 4.2-FEARSOME-20010209 i386 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Mar 10, 2001 at 04:05:56AM -0800, Bill Fumerola wrote: > add __DECONST(), __DEVOLATILE(), and __DEQUALIFY() intended use (though the reasons for its need are usually more complex): void bar(char *astring, int astringlen); void foo(void) { const char *mystring = "I like pie."; bar(__CONST(char *, mystring), strlen(mystring)); } For more information, please refer to the Book of Bruce, chapter -Wcast-qual. -- Bill Fumerola - security yahoo / Yahoo! inc. - fumerola@yahoo-inc.com / billf@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message