diff options
author | Tobias Heider <tobhe@cvs.openbsd.org> | 2023-02-15 20:44:02 +0000 |
---|---|---|
committer | Tobias Heider <tobhe@cvs.openbsd.org> | 2023-02-15 20:44:02 +0000 |
commit | ae2af85d2886f5a6bd49cd79bfb3b025030ac4e4 (patch) | |
tree | 33a92fff44e158f83edac8b7fb22e2df746acd11 /usr.sbin/relayd | |
parent | e878437e3a1e4b76915e0d618f0044b2eb28bf6a (diff) |
proc_ispeer() is not used anywhere anymore so remove it everywhere.
ok florian@ bluhm@
ok for vmd mlarkin@
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/proc.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.sbin/relayd/proc.c b/usr.sbin/relayd/proc.c index ce7b056f779..52d27d25df4 100644 --- a/usr.sbin/relayd/proc.c +++ b/usr.sbin/relayd/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.43 2022/09/03 20:07:31 benno Exp $ */ +/* $OpenBSD: proc.c,v 1.44 2023/02/15 20:44:01 tobhe Exp $ */ /* * Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org> @@ -43,24 +43,11 @@ void proc_open(struct privsep *, int, int); void proc_accept(struct privsep *, int, enum privsep_procid, unsigned int); void proc_close(struct privsep *); -int proc_ispeer(struct privsep_proc *, unsigned int, enum privsep_procid); void proc_shutdown(struct privsep_proc *); void proc_sig_handler(int, short, void *); void proc_range(struct privsep *, enum privsep_procid, int *, int *); int proc_dispatch_null(int, struct privsep_proc *, struct imsg *); -int -proc_ispeer(struct privsep_proc *procs, unsigned int nproc, - enum privsep_procid type) -{ - unsigned int i; - - for (i = 0; i < nproc; i++) - if (procs[i].p_id == type) - return (1); - return (0); -} - enum privsep_procid proc_getid(struct privsep_proc *procs, unsigned int nproc, const char *proc_name) |