Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Mar 2003 22:53:14 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        John Polstra <jdp@polstra.com>
Cc:        current@freebsd.org
Subject:   Re: PATCH: type errors in src-tree
Message-ID:  <xzpptp9bflh.fsf@flood.ping.uio.no>
In-Reply-To: <200303021756.h22HuHJR005595@vashon.polstra.com> (John Polstra's message of "Sun, 2 Mar 2003 09:56:17 -0800 (PST)")
References:  <3E5EA13E.9020208@liwing.de> <20030301155546.A39174@FreeBSD.org> <3E612F7F.1090002@liwing.de> <xzpel5qc6nj.fsf@flood.ping.uio.no> <200303021756.h22HuHJR005595@vashon.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
John Polstra <jdp@polstra.com> writes:
> Dag-Erling Smorgrav  <des@ofug.org> wrote:
> > This is wrong.  caddr_t should be uniersally replaced with void *.
> Not quite.  There is (or at least used to be) a lot of code that
> assumed you could do address arithmetic on a caddr_t.  You can't do
> that on a void *, at least not in ANSI C.  I think gcc lets you do
> it, but it's an extension.

Correct, and it will break if compiled with the options we use to
build kernels, but in the great majority of cases, caddr_t can be
replaced with void *.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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