summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-10-25 21:55:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-10-25 21:55:29 +0000
commit75a1785748733af3b8be900e11023bcc467e0e67 (patch)
tree248ebd5d9e223baa17bfd3b5cee4692542ab8ed1 /include
parentbab1d726ab6cfb2705e230159e33b3fa66e98fef (diff)
NULL is now 0L so it is the same size as a pointer.
OK mickey@ and discussed with deraadt@
Diffstat (limited to 'include')
-rw-r--r--include/dirent.h4
-rw-r--r--include/locale.h4
-rw-r--r--include/stddef.h4
-rw-r--r--include/stdio.h4
-rw-r--r--include/stdlib.h4
-rw-r--r--include/string.h4
-rw-r--r--include/time.h4
-rw-r--r--include/unistd.h4
8 files changed, 16 insertions, 16 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 45392a7d20c..8884da63f56 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirent.h,v 1.8 2002/02/17 19:42:21 millert Exp $ */
+/* $OpenBSD: dirent.h,v 1.9 2002/10/25 21:55:28 millert 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 0
+#define NULL 0L
#endif
#endif
diff --git a/include/locale.h b/include/locale.h
index 4bd430b6183..cf389b76af7 100644
--- a/include/locale.h
+++ b/include/locale.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: locale.h,v 1.4 2002/02/16 21:27:17 millert Exp $ */
+/* $OpenBSD: locale.h,v 1.5 2002/10/25 21:55:28 millert Exp $ */
/* $NetBSD: locale.h,v 1.6 1994/10/26 00:56:02 cgd Exp $ */
/*
@@ -64,7 +64,7 @@ struct lconv {
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0
+#define NULL 0L
#endif
#endif
diff --git a/include/stddef.h b/include/stddef.h
index c9eaaa21ecf..dc6f500b2e6 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stddef.h,v 1.4 1999/11/27 13:20:25 espie Exp $ */
+/* $OpenBSD: stddef.h,v 1.5 2002/10/25 21:55:28 millert Exp $ */
/* $NetBSD: stddef.h,v 1.4 1994/10/26 00:56:26 cgd Exp $ */
/*-
@@ -60,7 +60,7 @@ typedef _BSD_WCHAR_T_ wchar_t;
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0
+#define NULL 0L
#endif
#endif
diff --git a/include/stdio.h b/include/stdio.h
index 7918650e097..d2a62bc6242 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdio.h,v 1.22 2002/02/19 19:39:36 millert Exp $ */
+/* $OpenBSD: stdio.h,v 1.23 2002/10/25 21:55:28 millert Exp $ */
/* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */
/*-
@@ -63,7 +63,7 @@ typedef _BSD_OFF_T_ off_t;
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0
+#define NULL 0L
#endif
#endif
diff --git a/include/stdlib.h b/include/stdlib.h
index f6c322a4a67..71c22af6efd 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdlib.h,v 1.20 2002/06/29 00:20:11 millert Exp $ */
+/* $OpenBSD: stdlib.h,v 1.21 2002/10/25 21:55:28 millert Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
@@ -79,7 +79,7 @@ typedef struct {
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0
+#define NULL 0L
#endif
#endif
diff --git a/include/string.h b/include/string.h
index af469e99d1f..3f32aed40db 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: string.h,v 1.7 2002/02/16 21:27:17 millert Exp $ */
+/* $OpenBSD: string.h,v 1.8 2002/10/25 21:55:28 millert Exp $ */
/* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */
/*-
@@ -49,7 +49,7 @@ typedef _BSD_SIZE_T_ size_t;
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0
+#define NULL 0L
#endif
#endif
diff --git a/include/time.h b/include/time.h
index 9ba1a60de23..9bdc239f379 100644
--- a/include/time.h
+++ b/include/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.11 2002/02/16 21:27:17 millert Exp $ */
+/* $OpenBSD: time.h,v 1.12 2002/10/25 21:55:28 millert Exp $ */
/* $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ */
/*
@@ -51,7 +51,7 @@
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0
+#define NULL 0L
#endif
#endif
diff --git a/include/unistd.h b/include/unistd.h
index 20297b80626..a8305e4ebcf 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.42 2002/09/17 21:15:58 deraadt Exp $ */
+/* $OpenBSD: unistd.h,v 1.43 2002/10/25 21:55:28 millert Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -51,7 +51,7 @@
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0 /* null pointer constant */
+#define NULL 0L
#endif
#endif