From owner-freebsd-hackers Mon May 19 08:53:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA28963 for hackers-outgoing; Mon, 19 May 1997 08:53:08 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id IAA28721; Mon, 19 May 1997 08:50:22 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id RAA18484; Mon, 19 May 1997 17:50:18 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id RAA00904; Mon, 19 May 1997 17:37:33 +0200 (MET DST) Message-ID: <19970519173733.JP59532@uriah.heep.sax.de> Date: Mon, 19 May 1997 17:37:33 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG Cc: core@FreeBSD.ORG Subject: Re: Variable initialization References: <199705191148.NAA04574@labinfo.iet.unipi.it> <199705191347.VAA22545@spinner.DIALix.COM> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 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 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199705191347.VAA22545@spinner.DIALix.COM>; from Peter Wemm on May 19, 1997 21:47:17 +0800 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Peter Wemm wrote: > This doesn't bother me, but the following example does: > > int s = splnet(); > struct inpcb *pcb = sotoinpcb(so); Point taken. Then, we should change the wording to explicitly mention that function calls as initializers are a no-go. This will be understandable for most people. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)