From owner-cvs-all Thu Jul 5 0:20: 4 2001 Delivered-To: cvs-all@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id AD5EC37B401; Thu, 5 Jul 2001 00:19:56 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id JAA12125; Thu, 5 Jul 2001 09:19:55 +0200 (CEST) Received: (from j@localhost) by uriah.heep.sax.de (8.11.4/8.11.4) id f656rwk27566; Thu, 5 Jul 2001 08:53:58 +0200 (MET DST) (envelope-from j) Date: Thu, 5 Jul 2001 08:53:58 +0200 From: Joerg Wunsch To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys bio.h Message-ID: <20010705085358.J3398@uriah.heep.sax.de> Reply-To: Joerg Wunsch References: <20010704212624.A1812@schweikhardt.net> <200107050607.f6567Vx00615@mass.dis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200107050607.f6567Vx00615@mass.dis.org>; from msmith@FreeBSD.org on Wed, Jul 04, 2001 at 11:07:31PM -0700 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG As Mike Smith wrote: > > # I think that's wrong C. AFAIR, an arbitrary /pointer/ is allowed to > > # be cast to a void *, and then cast back to just that arbitrary > > > > s/cast/assigned to/g > Regardless, the above is both legal and desirable. It might be desirable (depends on your point of view -- from a bit saving POV, it is, from a portability POV, it ain't). But we've clearly shown that it is illegal. C does not guarantee what will happen. And no, you don't get me to write code that is more unportable than it needs to be. Thus, i'd rather use one of the four million spare values that is left in bio_cmd. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message