diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2014-02-14 10:21:01 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2014-02-14 10:21:01 +0000 |
commit | 4c359ad96aa4397369f1d58a5f473d5e540e5302 (patch) | |
tree | d68a863f597ebcc45b2e2c3e4e53bd79513b66c8 /usr.sbin/relayd | |
parent | f4e9a9ffa848780f796a2edef5fa8e2d43dcecff (diff) |
remove unused function that distracts from cleaning up the imsg_flush() mess
ok krw, florian, henning
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/proc.c | 12 | ||||
-rw-r--r-- | usr.sbin/relayd/relayd.h | 3 |
2 files changed, 2 insertions, 13 deletions
diff --git a/usr.sbin/relayd/proc.c b/usr.sbin/relayd/proc.c index 51ed973fb5e..0ecafa667ec 100644 --- a/usr.sbin/relayd/proc.c +++ b/usr.sbin/relayd/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.6 2013/11/13 20:45:50 benno Exp $ */ +/* $OpenBSD: proc.c,v 1.7 2014/02/14 10:21:00 benno Exp $ */ /* * Copyright (c) 2010,2011 Reyk Floeter <reyk@openbsd.org> @@ -588,16 +588,6 @@ proc_forward_imsg(struct privsep *ps, struct imsg *imsg, imsg->fd, imsg->data, IMSG_DATA_SIZE(imsg))); } -void -proc_flush_imsg(struct privsep *ps, enum privsep_procid id, int n) -{ - int m; - - proc_range(ps, id, &n, &m); - for (; n < m; n++) - imsg_flush(&ps->ps_ievs[id][n].ibuf); -} - struct imsgbuf * proc_ibuf(struct privsep *ps, enum privsep_procid id, int n) { diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h index 202ef56d331..675930b325a 100644 --- a/usr.sbin/relayd/relayd.h +++ b/usr.sbin/relayd/relayd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.h,v 1.171 2013/09/09 17:57:45 reyk Exp $ */ +/* $OpenBSD: relayd.h,v 1.172 2014/02/14 10:21:00 benno Exp $ */ /* * Copyright (c) 2006 - 2012 Reyk Floeter <reyk@openbsd.org> @@ -1164,7 +1164,6 @@ int proc_composev_imsg(struct privsep *, enum privsep_procid, int, u_int16_t, int, const struct iovec *, int); int proc_forward_imsg(struct privsep *, struct imsg *, enum privsep_procid, int); -void proc_flush_imsg(struct privsep *, enum privsep_procid, int); struct imsgbuf * proc_ibuf(struct privsep *, enum privsep_procid, int); void imsg_event_add(struct imsgev *); |