commit 8476cc2a23a92d71e099294a31fa7a70bff9c822 from: Omar Polo date: Sun Jun 11 12:29:16 2023 UTC remove proc_ispeer() unused, and was dropped by the other copies of proc.c; reduces the diff with httpd' proc.c. commit - baaae61518bf323d22055a3b02fc9e129ee6d567 commit + 8476cc2a23a92d71e099294a31fa7a70bff9c822 blob - e8ef72c1578602ffd6a5b783e756e9cfc24595de blob + af1919d98925cc1f5ca97aed9a73ce4eb60bad00 --- gotwebd/proc.c +++ gotwebd/proc.c @@ -40,25 +40,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 *); int proc_dispatch_null(int, struct privsep_proc *, struct imsg *); enum privsep_procid privsep_process; - -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,