summaryrefslogtreecommitdiffstats
path: root/share/man
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-06-13 19:52:42 +0000
committerwollman <wollman@FreeBSD.org>1996-06-13 19:52:42 +0000
commitfffbd5d72119058c49e9a9072ce471d48c3cb30c (patch)
tree6295e2302345c677ad16ee67aa00741f35ed4450 /share/man
parentb8c4cd33eadb66d459d47b5643af2dca214eeb0b (diff)
downloadFreeBSD-src-fffbd5d72119058c49e9a9072ce471d48c3cb30c.zip
FreeBSD-src-fffbd5d72119058c49e9a9072ce471d48c3cb30c.tar.gz
Delete incorrect and misleading suggestion about NULL. I left in
the part about testing pointers against NULL, even though I disagree with it personally.
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/style.97
1 files changed, 3 insertions, 4 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index f93122f..89976d6 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -13,7 +13,7 @@ files in the FreeBSD source tree.
*
* @(#)style 1.14 (Berkeley) 4/28/95
*
- * FreeBSD $Id: style.9,v 1.5 1996/03/31 22:36:14 joerg Exp $
+ * $Id: style.9,v 1.7 1996/04/07 08:37:54 mpp Exp $
*
*/
@@ -277,9 +277,8 @@ the declarations. Use this feature only thoughtfully.
void *mymalloc __P((u_int));
.Ed
.Pp
-Casts and sizeof's are not followed by a space. NULL is any
-pointer type, and doesn't need to be cast, so use NULL instead
-of (struct foo *)0 or (struct foo *)NULL. Also, test pointers
+Casts and sizeof's are not followed by a space.
+Also, test pointers
against NULL, i.e. use:
.Bd -literal -offset 0i
(p = f()) == NULL
OpenPOWER on IntegriCloud