summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-10-25 21:55:28 +0000
committermillert <millert@openbsd.org>2002-10-25 21:55:28 +0000
commit8248c2b451a4989c230e4e5c7ca8409a99fdc79a (patch)
treecd18b8b0a9a634a35d34e9baf8aeb223628adb3d
parentprepend the underscore always for elf, this makes kvm_bsd.db work on elf platforms; drahn@ millert@ ok (diff)
downloadwireguard-openbsd-8248c2b451a4989c230e4e5c7ca8409a99fdc79a.tar.xz
wireguard-openbsd-8248c2b451a4989c230e4e5c7ca8409a99fdc79a.zip
NULL is now 0L so it is the same size as a pointer.
OK mickey@ and discussed with deraadt@
-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
-rw-r--r--sys/sys/param.h4
9 files changed, 18 insertions, 18 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
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 959f70289fa..b2260ef0af3 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.49 2002/09/10 21:36:57 deraadt Exp $ */
+/* $OpenBSD: param.h,v 1.50 2002/10/25 21:55:28 millert Exp $ */
/* $NetBSD: param.h,v 1.23 1996/03/17 01:02:29 thorpej Exp $ */
/*-
@@ -52,7 +52,7 @@
#ifdef __GNUG__
#define NULL __null
#else
-#define NULL 0
+#define NULL 0L
#endif
#endif