From 0c2a5da7f05365c149e31167afeb0bdaec9adde8 Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 6 Apr 2011 11:39:42 +0000 Subject: 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. --- include/stdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/stdio.h') 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 -- cgit v1.2.3-59-g8ed1b