summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapd/namespace.c
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 /usr.sbin/ldapd/namespace.c
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 'usr.sbin/ldapd/namespace.c')
-rw-r--r--usr.sbin/ldapd/namespace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldapd/namespace.c b/usr.sbin/ldapd/namespace.c
index 2a3ebd4d76b..23fb2c3b33b 100644
--- a/usr.sbin/ldapd/namespace.c
+++ b/usr.sbin/ldapd/namespace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: namespace.c,v 1.12 2012/06/16 00:08:32 jmatthew Exp $ */
+/* $OpenBSD: namespace.c,v 1.13 2014/09/13 16:06:37 doug Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -526,8 +526,8 @@ namespace_cancel_conn(struct conn *conn)
struct request *req, *next;
TAILQ_FOREACH(ns, &conf->namespaces, next) {
- for (req = TAILQ_FIRST(&ns->request_queue);
- req != TAILQ_END(&ns->request_queue); req = next) {
+ for (req = TAILQ_FIRST(&ns->request_queue); req != NULL;
+ req = next) {
next = TAILQ_NEXT(req, next);
if (req->conn == conn) {