From owner-freebsd-current Sun Mar 2 13:53:19 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A22037B401 for ; Sun, 2 Mar 2003 13:53:18 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01E9E43FA3 for ; Sun, 2 Mar 2003 13:53:17 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 169DB530E; Sun, 2 Mar 2003 22:53:14 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: John Polstra Cc: current@freebsd.org Subject: Re: PATCH: type errors in src-tree From: Dag-Erling Smorgrav Date: Sun, 02 Mar 2003 22:53:14 +0100 In-Reply-To: <200303021756.h22HuHJR005595@vashon.polstra.com> (John Polstra's message of "Sun, 2 Mar 2003 09:56:17 -0800 (PST)") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <3E5EA13E.9020208@liwing.de> <20030301155546.A39174@FreeBSD.org> <3E612F7F.1090002@liwing.de> <200303021756.h22HuHJR005595@vashon.polstra.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Polstra writes: > Dag-Erling Smorgrav 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