summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-06 11:39:45 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-06 11:39:45 +0000
commit40f6222b51341dcb8308e73c42816d8c2368890c (patch)
tree98a0fb5dcc2c5a61dc68795989b9083e88e42dc5 /include/string.h
parente2ddf551fe54f5fd63dbb0131d6835d07f172753 (diff)
Define NULL as a void * instead of a long integer, as required by Single Unix.
Kernel and bootblocks still use the old 0L value until all the NULL abuses in the code are fixed.
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h
index 3a1494d16d7..f3ae14e15c2 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: string.h,v 1.20 2010/09/24 13:33:00 matthew Exp $ */
+/* $OpenBSD: string.h,v 1.21 2011/04/06 11:39:42 miod Exp $ */
/* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */
/*-
@@ -47,7 +47,7 @@ typedef __size_t size_t;
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0L
+#define NULL ((void *)0)
#endif
#endif