diff options
author | miod <miod@openbsd.org> | 2011-04-06 11:39:42 +0000 |
---|---|---|
committer | miod <miod@openbsd.org> | 2011-04-06 11:39:42 +0000 |
commit | 0c2a5da7f05365c149e31167afeb0bdaec9adde8 (patch) | |
tree | d73a0e1a88f806feae92c7031cd46a52a3b6c5be /include/stdio.h | |
parent | Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0' (diff) | |
download | wireguard-openbsd-0c2a5da7f05365c149e31167afeb0bdaec9adde8.tar.xz wireguard-openbsd-0c2a5da7f05365c149e31167afeb0bdaec9adde8.zip |
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/stdio.h')
-rw-r--r-- | include/stdio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdio.h b/include/stdio.h index e23e7ad4667..aeb48f1535c 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdio.h,v 1.38 2009/11/09 00:18:27 kurt Exp $ */ +/* $OpenBSD: stdio.h,v 1.39 2011/04/06 11:39:42 miod Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- @@ -59,7 +59,7 @@ typedef __off_t off_t; #ifdef __GNUG__ #define NULL __null #else -#define NULL 0L +#define NULL ((void *)0) #endif #endif |