Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 2003 02:23:51 +0000
From:      Tony Finch <dot@dotat.at>
To:        Nate Lawson <nate@root.org>
Cc:        Bruce Evans <bde@zeta.org.au>, Hidetoshi Shimokawa <simokawa@FreeBSD.org>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/firewire firewire.c fwdev.c fwohci.c fwohcivar.h
Message-ID:  <20030117022351.B20888@chiark.greenend.org.uk>
In-Reply-To: <Pine.BSF.4.21.0301161036320.46845-100000@root.org>; from nate@root.org on Thu, Jan 16, 2003 at 10:38:07AM -0800
References:  <20030117052637.I3675-100000@gamplex.bde.org> <Pine.BSF.4.21.0301161036320.46845-100000@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 16, 2003 at 10:38:07AM -0800, Nate Lawson wrote:
> 
> Yes, I've had to discard volatile also (when dealing with freeing an
> aio_buf).  I'm interested why it can't be cast directly to (void *).  Why
> the indirection through unitptr_t?

Once you lose the pointerness of a value the qualifications of what
it points to have been lost as well. There isn't a warning for casting
from any kind of pointer to uintptr_t or vice versa (regardless of
qualification) whereas direct casting fails to hide the difference.
C would benefit from parametic polymorphism for qualifiers which
would solve this problem.

Tony.
-- 
f.a.n.finch  <dot@dotat.at>  http://dotat.at/
IRISH SEA: SOUTHWEST 7 TO SEVERE GALE 9, OCCASIONALLY STORM FORCE 10 AT FIRST,
VEERING WEST 6. RAIN THEN SHOWERS. MODERATE BECOMING GOOD.

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?20030117022351.B20888>