summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2014-09-13 16:06:36 +0000
committerdoug <doug@openbsd.org>2014-09-13 16:06:36 +0000
commitabcbcc4d80a0ed0907ba123021478336e6ec4c4a (patch)
treed04a4f6443a0b5220bf8f6ccbe79d0224cf82c21 /lib
parentdocument default EXTRACT_CASES support for *.tar.lzma (reminded by juanfra@) (diff)
downloadwireguard-openbsd-abcbcc4d80a0ed0907ba123021478336e6ec4c4a.tar.xz
wireguard-openbsd-abcbcc4d80a0ed0907ba123021478336e6ec4c4a.zip
Replace all queue *_END macro calls except CIRCLEQ_END with NULL.
CIRCLEQ_* is deprecated and not called in the tree. The other queue types have *_END macros which were added for symmetry with CIRCLEQ_END. They are defined as NULL. There's no reason to keep the other *_END macro calls. ok millert@
Diffstat (limited to 'lib')
-rw-r--r--lib/libevent/event-internal.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libevent/event-internal.h b/lib/libevent/event-internal.h
index 9dc84353d7f..7eb2d9d52be 100644
--- a/lib/libevent/event-internal.h
+++ b/lib/libevent/event-internal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: event-internal.h,v 1.6 2010/04/21 20:02:40 nicm Exp $ */
+/* $OpenBSD: event-internal.h,v 1.7 2014/09/13 16:06:36 doug Exp $ */
/*
* Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu>
@@ -74,11 +74,10 @@ struct event_base {
/* Internal use only: Functions that might be missing from <sys/queue.h> */
#ifndef HAVE_TAILQFOREACH
#define TAILQ_FIRST(head) ((head)->tqh_first)
-#define TAILQ_END(head) NULL
#define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)
#define TAILQ_FOREACH(var, head, field) \
for((var) = TAILQ_FIRST(head); \
- (var) != TAILQ_END(head); \
+ (var) != NULL; \
(var) = TAILQ_NEXT(var, field))
#define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \
(elm)->field.tqe_prev = (listelm)->field.tqe_prev; \