From ae2af85d2886f5a6bd49cd79bfb3b025030ac4e4 Mon Sep 17 00:00:00 2001 From: Tobias Heider Date: Wed, 15 Feb 2023 20:44:02 +0000 Subject: proc_ispeer() is not used anywhere anymore so remove it everywhere. ok florian@ bluhm@ ok for vmd mlarkin@ --- usr.sbin/relayd/proc.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'usr.sbin/relayd') 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 @@ -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) -- cgit v1.2.3