Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Aug 2010 22:29:50 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, olli@fromme.com, jilles@stack.nl
Subject:   Re: svn commit: r211023 - head/usr.sbin/syslogd
Message-ID:  <864of3y1fl.fsf@ds4.des.no>
In-Reply-To: <20100809.095007.4959786895405928.imp@bsdimp.com> (M. Warner Losh's message of "Mon, 09 Aug 2010 09:50:07 -0600 (MDT)")
References:  <20100808.153608.1142818667055052395.imp@bsdimp.com> <20100808220631.GA86477@stack.nl> <86tyn4tbuc.fsf@ds4.des.no> <20100809.095007.4959786895405928.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"M. Warner Losh" <imp@bsdimp.com> writes:
> I like the idea of a macro.  Why is a cast through uintptr_t better?

Without the uintptr_t cast, you'll get an error, or at least a warning,
if the pointer is qualified (const and / or volatile).

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864of3y1fl.fsf>