summaryrefslogtreecommitdiff
path: root/usr.sbin/ypldap/ypldap.h
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2016-04-10 09:59:22 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2016-04-10 09:59:22 +0000
commitd214125c5b96da9ab6be83f7767887ce527e4d1d (patch)
tree7c61bd5bc0f120846b649f36fc123c3bb92350f7 /usr.sbin/ypldap/ypldap.h
parentb90b42426a0e63962918f8a593a047a032a7b6ad (diff)
convert ypldap_addr list to a tailq
ok dlg@
Diffstat (limited to 'usr.sbin/ypldap/ypldap.h')
-rw-r--r--usr.sbin/ypldap/ypldap.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ypldap/ypldap.h b/usr.sbin/ypldap/ypldap.h
index 177e8fda4f2..d12eaa90024 100644
--- a/usr.sbin/ypldap/ypldap.h
+++ b/usr.sbin/ypldap/ypldap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypldap.h,v 1.16 2015/01/16 06:40:22 deraadt Exp $ */
+/* $OpenBSD: ypldap.h,v 1.17 2016/04/10 09:59:21 jmatthew Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -41,9 +41,10 @@ enum imsg_type {
};
struct ypldap_addr {
- struct ypldap_addr *next;
+ TAILQ_ENTRY(ypldap_addr) next;
struct sockaddr_storage ss;
};
+TAILQ_HEAD(ypldap_addr_list, ypldap_addr);
enum {
PROC_MAIN,
@@ -90,7 +91,7 @@ struct idm {
enum client_state idm_state;
u_int32_t idm_flags; /* lower 20 reserved */
u_int32_t idm_list;
- struct ypldap_addr *idm_addr;
+ struct ypldap_addr_list idm_addr;
in_port_t idm_port;
char idm_binddn[LINE_WIDTH];
char idm_bindcred[LINE_WIDTH];