Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Enclose (void *)0 in an extra set of parenthese to m...
details: https://anonhg.NetBSD.org/src/rev/124a5b802a7a
branches: trunk
changeset: 748097:124a5b802a7a
user: dsl <dsl%NetBSD.org@localhost>
date: Tue Oct 13 17:19:00 2009 +0000
description:
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!
diffstat:
sys/sys/null.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 3f7f449f8c75 -r 124a5b802a7a sys/sys/null.h
--- a/sys/sys/null.h Tue Oct 13 12:55:53 2009 +0000
+++ b/sys/sys/null.h Tue Oct 13 17:19:00 2009 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index