summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/control.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-06-20 18:35:13 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-06-20 18:35:13 +0000
commit27aab8e947ae47e5ef251b626c74f07b90c6d431 (patch)
tree107f3a2241bf2915922968599d684540fb3a41a9 /usr.sbin/bgpd/control.c
parent3e242c00ff1012f1cedac4f789cf6f5bbb86b327 (diff)
at least somewhat consistently name the TAILQ_ENTRYs... this confused me
more than once
Diffstat (limited to 'usr.sbin/bgpd/control.c')
-rw-r--r--usr.sbin/bgpd/control.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c
index 2c9e9ebe234..db33c759868 100644
--- a/usr.sbin/bgpd/control.c
+++ b/usr.sbin/bgpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.32 2004/06/09 13:01:44 henning Exp $ */
+/* $OpenBSD: control.c,v 1.33 2004/06/20 18:35:12 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -130,7 +130,7 @@ control_accept(int listenfd)
imsg_init(&ctl_conn->ibuf, connfd);
- TAILQ_INSERT_TAIL(&ctl_conns, ctl_conn, entries);
+ TAILQ_INSERT_TAIL(&ctl_conns, ctl_conn, entry);
return (1);
}
@@ -141,7 +141,7 @@ control_connbyfd(int fd)
struct ctl_conn *c;
for (c = TAILQ_FIRST(&ctl_conns); c != NULL && c->ibuf.fd != fd;
- c = TAILQ_NEXT(c, entries))
+ c = TAILQ_NEXT(c, entry))
; /* nothing */
return (c);
@@ -153,7 +153,7 @@ control_connbypid(pid_t pid)
struct ctl_conn *c;
for (c = TAILQ_FIRST(&ctl_conns); c != NULL && c->ibuf.pid != pid;
- c = TAILQ_NEXT(c, entries))
+ c = TAILQ_NEXT(c, entry))
; /* nothing */
return (c);
@@ -170,7 +170,7 @@ control_close(int fd)
}
msgbuf_clear(&c->ibuf.w);
- TAILQ_REMOVE(&ctl_conns, c, entries);
+ TAILQ_REMOVE(&ctl_conns, c, entry);
close(c->ibuf.fd);
free(c);