diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-11 12:45:42 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-11 12:45:42 +0000 |
commit | 5d160453f27672bda82e8497aa96a4230705ffbd (patch) | |
tree | 6f015ed202d2c591de921ee70215e9b9c6a89d5f /proc.c | |
parent | ba290ef3affaad8a51b789eeadab269df1ffd0af (diff) |
remove proc_ispeer()
unused, and was dropped by other copies of proc.c; reduces the diff
with httpd' proc.c.
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -49,24 +49,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) |