Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 1999 10:30:56 +0200 (MET DST)
From:      Nick Hibma <nick.hibma@jrc.it>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        wollman@khavrinen.lcs.mit.edu, freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/12729: Missing function pointer initialization in Network code
Message-ID:  <Pine.GSO.3.95q.990728102511.15855G-100000@elect8>
In-Reply-To: <199907280742.RAA11212@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
 > >>  Precisely there.  It is a declaration of a variable with static
 > >>  lifetime.  Please read ISO 9899 (or at least K&R II).
 > >
 > >For clarities sake I do think it is a good point in having explicit
 > >initialisations.
 > 
 > You mean for clutters sake.

Forgive my ignorance, but I do not have a copy of ISO 9899 or K&R II
lying around, nor do I know off the top of my head what gcc or any other
tools adher to with or without flags specified. And certainly do I not
want to be bothered with standards compliance when trying to understand
a piece of code.

	int *ptr = NULL;
instead of
	int *ptr;

for a variable with static lifetime is considered by most people a Good
Thing. I remember BSS not being cleared on TOS (Atari ST) for example.




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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.95q.990728102511.15855G-100000>