summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-23 03:53:22 +0000
committerangelos <angelos@openbsd.org>2001-06-23 03:53:22 +0000
commit31387877e304dadc6d3e48257d6dfc45c0eb0905 (patch)
treeae492b24c8c96af61336dc095612b3216d4b413a
parentActually, should just use m_tag_init() (diff)
downloadwireguard-openbsd-31387877e304dadc6d3e48257d6dfc45c0eb0905.tar.xz
wireguard-openbsd-31387877e304dadc6d3e48257d6dfc45c0eb0905.zip
One of these days, I'll learn to type.
-rw-r--r--sys/sys/queue.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h
index 16dce9fd63f..a8ab82ca68a 100644
--- a/sys/sys/queue.h
+++ b/sys/sys/queue.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.h,v 1.19 2001/06/23 03:49:06 angelos Exp $ */
+/* $OpenBSD: queue.h,v 1.20 2001/06/23 03:53:22 angelos Exp $ */
/* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */
/*
@@ -281,16 +281,16 @@ struct { \
#define DLIST_INSERT_HEAD(head, elm, field) do { \
if (((elm)->field.de_next = (head)->dh_first) != NULL) \
(head)->dh_first->field.de_prev = &(elm)->field.de_next;\
- (head)->lh_first = (elm); \
- (elm)->field.le_prev = NULL; \
+ (head)->dh_first = (elm); \
+ (elm)->field.de_prev = NULL; \
} while (0)
#define DLIST_REMOVE(head, elm, field) do { \
- if ((elm)->field.le_next != NULL) \
- (elm)->field.le_next->field.le_prev = \
- (elm)->field.le_prev; \
- if ((elm)->field.le_prev != NULL) \
- *(elm)->field.le_prev = (elm)->field.le_next; \
+ if ((elm)->field.de_next != NULL) \
+ (elm)->field.de_next->field.de_prev = \
+ (elm)->field.de_prev; \
+ if ((elm)->field.de_prev != NULL) \
+ *(elm)->field.de_prev = (elm)->field.de_next; \
else \
(head)->dh_first = DLIST_END(head); \
} while (0)