Module Name: src
Committed By: dsl
Date: Tue Oct 13 17:19:00 UTC 2009
Modified Files:
src/sys/sys: null.h
Log Message:
Enclose (void *)0 in an extra set of parenthese to make the result usable
in arbitrary expressions.
Fixes PR/41890, I can't think of any downsides!
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/sys/null.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/null.h
diff -u src/sys/sys/null.h:1.7 src/sys/sys/null.h:1.8
--- src/sys/sys/null.h:1.7 Sat Dec 3 17:10:46 2005
+++ src/sys/sys/null.h Tue Oct 13 17:19:00 2009
@@ -1,11 +1,11 @@
-/* $NetBSD: null.h,v 1.7 2005/12/03 17:10:46 christos Exp $ */
+/* $NetBSD: null.h,v 1.8 2009/10/13 17:19:00 dsl Exp $ */
#ifndef _SYS_NULL_H_
#define _SYS_NULL_H_
#ifndef NULL
#if !defined(__GNUG__) || __GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 90)
#if !defined(__cplusplus)
-#define NULL (void *)0
+#define NULL ((void *)0)
#else
#define NULL 0
#endif /* !__cplusplus */