summaryrefslogtreecommitdiff
path: root/usr.sbin/switchd/proc.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@cvs.openbsd.org>2016-09-18 13:17:41 +0000
committerRafael Zalamena <rzalamena@cvs.openbsd.org>2016-09-18 13:17:41 +0000
commite7f534f494af02cdd506c861185b2c6dc583d4a1 (patch)
tree8f0822c723ec32271ed58330899ce80bf455ab16 /usr.sbin/switchd/proc.c
parent36f1a8ebf4de85505b7d18392323f5c2defee7bf (diff)
Kill p_env from proc.c. The p_env variable was not being used seriously and
it was always a copy of ps->ps_env. You might access the env variable now with: p->p_ps->ps_env. ok reyk@
Diffstat (limited to 'usr.sbin/switchd/proc.c')
-rw-r--r--usr.sbin/switchd/proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/switchd/proc.c b/usr.sbin/switchd/proc.c
index 5e3f1b68c5e..34cf1c83344 100644
--- a/usr.sbin/switchd/proc.c
+++ b/usr.sbin/switchd/proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.c,v 1.2 2016/09/14 13:46:51 rzalamena Exp $ */
+/* $OpenBSD: proc.c,v 1.3 2016/09/18 13:17:40 rzalamena Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -300,7 +300,6 @@ proc_setup(struct privsep *ps, struct privsep_proc *procs, unsigned int nproc)
for (src = 0; src < nproc; src++) {
procs[src].p_ps = ps;
- procs[src].p_env = ps->ps_env;
if (procs[src].p_cb == NULL)
procs[src].p_cb = proc_dispatch_null;