diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:39:45 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:39:45 +0000 |
commit | 40f6222b51341dcb8308e73c42816d8c2368890c (patch) | |
tree | 98a0fb5dcc2c5a61dc68795989b9083e88e42dc5 /include/unistd.h | |
parent | e2ddf551fe54f5fd63dbb0131d6835d07f172753 (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/unistd.h')
-rw-r--r-- | include/unistd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h index a28fb72d146..4edcae76007 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.62 2008/06/25 14:58:54 millert Exp $ */ +/* $OpenBSD: unistd.h,v 1.63 2011/04/06 11:39:42 miod Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -59,7 +59,7 @@ #ifdef __GNUG__ #define NULL __null #else -#define NULL 0L +#define NULL ((void *)0) #endif #endif |