Date: Sat, 10 Mar 2001 06:33:31 -0600 From: Bill Fumerola <billf@mu.org> To: Bill Fumerola <billf@elvis.mu.org> 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> In-Reply-To: <200103101205.f2AC5us05909@freefall.freebsd.org>; from billf@FreeBSD.org on Sat, Mar 10, 2001 at 04:05:56AM -0800 References: <200103101205.f2AC5us05909@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010310063331.B31752>