Move TAILQ initialization to files where they are used.
authordv <dv@openbsd.org>
Tue, 20 Apr 2021 21:11:56 +0000 (21:11 +0000)
committerdv <dv@openbsd.org>
Tue, 20 Apr 2021 21:11:56 +0000 (21:11 +0000)
commitc5fa57f5fbfbc33fa4adf7b5fe3c690a2e0d2e27
tree52d3ebf9f27736d405848feea27081c781510a54
parenta55f82243abaac629e0b9e28d5a4a873e11535b1
Move TAILQ initialization to files where they are used.

These priv-sep daemons all follow a similar design and use TAILQs
for tracking control process connections. In most cases, the TAILQs
are initialized separate from where they are used. Since the scope
of use is generally confined to a specific control process file,
this commit also removes any extern definitions and exposing the
TAILQ structures to other compilation units.

ok bluhm@, tb@
18 files changed:
sbin/iked/control.c
sbin/iked/iked.h
sbin/iked/proc.c
usr.sbin/httpd/control.c
usr.sbin/httpd/httpd.h
usr.sbin/httpd/proc.c
usr.sbin/ldapd/control.c
usr.sbin/ldapd/ldapd.h
usr.sbin/ldapd/ldape.c
usr.sbin/relayd/control.c
usr.sbin/relayd/proc.c
usr.sbin/relayd/relayd.h
usr.sbin/switchd/control.c
usr.sbin/switchd/proc.c
usr.sbin/switchd/proc.h
usr.sbin/vmd/control.c
usr.sbin/vmd/proc.c
usr.sbin/vmd/proc.h