summaryrefslogtreecommitdiff
path: root/include/locale.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/locale.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/locale.h')
-rw-r--r--include/locale.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/locale.h b/include/locale.h
index 7eeffa37410..dfff586aca5 100644
--- a/include/locale.h
+++ b/include/locale.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: locale.h,v 1.6 2003/06/02 19:34:12 millert Exp $ */
+/* $OpenBSD: locale.h,v 1.7 2011/04/06 11:39:42 miod Exp $ */
/* $NetBSD: locale.h,v 1.6 1994/10/26 00:56:02 cgd Exp $ */
/*
@@ -60,7 +60,7 @@ struct lconv {
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0L
+#define NULL ((void *)0)
#endif
#endif