summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/sys-queue.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2007-10-26 08:40:20 +0200
committerDamien Miller <djm@mindrot.org>2007-10-26 08:40:20 +0200
commitb99f5f714ba889a831591a1bdf436e29041c7dab (patch)
treeb9a45833192f8f9aace08715166e68ea68068b39 /openbsd-compat/sys-queue.h
parent - tdeval@cvs.openbsd.org 2004/11/24 18:10:42 (diff)
downloadopenssh-b99f5f714ba889a831591a1bdf436e29041c7dab.tar.xz
openssh-b99f5f714ba889a831591a1bdf436e29041c7dab.zip
- grange@cvs.openbsd.org 2004/05/04 16:59:32
[openbsd-compat/sys-queue.h] Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro. This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
Diffstat (limited to '')
-rw-r--r--openbsd-compat/sys-queue.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsd-compat/sys-queue.h b/openbsd-compat/sys-queue.h
index 402343324..71eec0e8c 100644
--- a/openbsd-compat/sys-queue.h
+++ b/openbsd-compat/sys-queue.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.h,v 1.25 2004/04/08 16:08:21 henning Exp $ */
+/* $OpenBSD: queue.h,v 1.26 2004/05/04 16:59:32 grange Exp $ */
/* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */
/*
@@ -369,8 +369,8 @@ struct { \
(listelm)->field.sqe_next = (elm); \
} while (0)
-#define SIMPLEQ_REMOVE_HEAD(head, elm, field) do { \
- if (((head)->sqh_first = (elm)->field.sqe_next) == NULL) \
+#define SIMPLEQ_REMOVE_HEAD(head, field) do { \
+ if (((head)->sqh_first = (head)->sqh_first->field.sqe_next) == NULL) \
(head)->sqh_last = &(head)->sqh_first; \
} while (0)