summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/control.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-02-07 13:39:59 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-02-07 13:39:59 +0000
commitbb4378f54dde688d5132078973e428d6c68aa229 (patch)
treed13b90dbd07f350536bb77d3a308509fa72ae245 /usr.sbin/hoststated/control.c
parentd2e1fab1c1884d2b52a8d0ce7a62ca22b0612229 (diff)
remove unused functions and variables which have been copied from
ospfd(8) (can be re-imported later if required).
Diffstat (limited to 'usr.sbin/hoststated/control.c')
-rw-r--r--usr.sbin/hoststated/control.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/usr.sbin/hoststated/control.c b/usr.sbin/hoststated/control.c
index a24b86deada..20e1cc04ff5 100644
--- a/usr.sbin/hoststated/control.c
+++ b/usr.sbin/hoststated/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.11 2007/02/01 20:03:39 pyr Exp $ */
+/* $OpenBSD: control.c,v 1.12 2007/02/07 13:39:58 reyk Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -40,7 +40,6 @@
struct ctl_connlist ctl_conns;
struct ctl_conn *control_connbyfd(int);
-struct ctl_conn *control_connbypid(pid_t);
void control_close(int);
int
@@ -156,18 +155,6 @@ control_connbyfd(int fd)
return (c);
}
-struct ctl_conn *
-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, entry))
- ; /* nothing */
-
- return (c);
-}
-
void
control_close(int fd)
{
@@ -338,18 +325,6 @@ control_dispatch_imsg(int fd, short event, void *arg)
imsg_event_add(&c->ibuf);
}
-int
-control_imsg_relay(struct imsg *imsg)
-{
- struct ctl_conn *c;
-
- if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
- return (0);
-
- return (imsg_compose(&c->ibuf, imsg->hdr.type, 0, imsg->hdr.pid,
- imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));
-}
-
void
control_imsg_forward(struct imsg *imsg)
{