From owner-freebsd-current Sun Mar 2 13:33:53 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 522E237B401 for ; Sun, 2 Mar 2003 13:33:52 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C56F43F3F for ; Sun, 2 Mar 2003 13:33:51 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.7/8.12.7) with ESMTP id h22LXnIA000782; Sun, 2 Mar 2003 21:33:49 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.7/8.12.7/Submit) with UUCP id h22LXnQM000781; Sun, 2 Mar 2003 21:33:49 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.7/8.12.7) with ESMTP id h22KuDIg055497; Sun, 2 Mar 2003 20:56:13 GMT (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200303022056.h22KuDIg055497@grimreaper.grondar.org> To: John Polstra Cc: current@FreeBSD.ORG Subject: Re: PATCH: type errors in src-tree In-Reply-To: Your message of "Sun, 02 Mar 2003 09:56:17 PST." <200303021756.h22HuHJR005595@vashon.polstra.com> Date: Sun, 02 Mar 2003 20:56:13 +0000 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: > In article , > 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. As I have discovered. I specifically looked for this, and my misreading of the spec is now clear. :-) M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message