summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsashan <sashan@openbsd.org>2018-07-12 14:22:54 +0000
committersashan <sashan@openbsd.org>2018-07-12 14:22:54 +0000
commit57cf9fc6a015052413f67fc403f07f33be10bf87 (patch)
tree542e24bbea16c5c216b02d104ba12fa6baedeaff
parentReorganize the Meltdown entry and exit trampolines for syscall and (diff)
downloadwireguard-openbsd-57cf9fc6a015052413f67fc403f07f33be10bf87.tar.xz
wireguard-openbsd-57cf9fc6a015052413f67fc403f07f33be10bf87.zip
- introducing _Q_INVALID to sys/queue.h
OK @bluhm, OK @otto, OK @guenther
-rw-r--r--sys/sys/queue.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h
index b055cef6c3f..f28ba894609 100644
--- a/sys/sys/queue.h
+++ b/sys/sys/queue.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.h,v 1.44 2016/09/09 20:31:46 millert Exp $ */
+/* $OpenBSD: queue.h,v 1.45 2018/07/12 14:22:54 sashan Exp $ */
/* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */
/*
@@ -82,7 +82,8 @@
*/
#if defined(QUEUE_MACRO_DEBUG) || (defined(_KERNEL) && defined(DIAGNOSTIC))
-#define _Q_INVALIDATE(a) (a) = ((void *)-1)
+#define _Q_INVALID ((void *)-1)
+#define _Q_INVALIDATE(a) (a) = _Q_INVALID
#else
#define _Q_INVALIDATE(a)
#endif