summaryrefslogtreecommitdiff
path: root/include/dirent.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/dirent.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/dirent.h')
-rw-r--r--include/dirent.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 15d66797b6e..ef1c1bafc95 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirent.h,v 1.20 2010/12/31 19:54:05 guenther Exp $ */
+/* $OpenBSD: dirent.h,v 1.21 2011/04/06 11:39:42 miod Exp $ */
/* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */
/*-
@@ -85,7 +85,7 @@ typedef struct _dirdesc {
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0L
+#define NULL ((void *)0)
#endif /* __GNUG__ */
#endif /* !NULL */