diff options
author | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2016-09-18 13:17:41 +0000 |
---|---|---|
committer | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2016-09-18 13:17:41 +0000 |
commit | e7f534f494af02cdd506c861185b2c6dc583d4a1 (patch) | |
tree | 8f0822c723ec32271ed58330899ce80bf455ab16 /usr.sbin/switchd/switch.c | |
parent | 36f1a8ebf4de85505b7d18392323f5c2defee7bf (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/switch.c')
-rw-r--r-- | usr.sbin/switchd/switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/switchd/switch.c b/usr.sbin/switchd/switch.c index 26efb78736a..285add7bacc 100644 --- a/usr.sbin/switchd/switch.c +++ b/usr.sbin/switchd/switch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: switch.c,v 1.2 2016/07/20 20:07:02 reyk Exp $ */ +/* $OpenBSD: switch.c,v 1.3 2016/09/18 13:17:40 rzalamena Exp $ */ /* * Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org> @@ -46,8 +46,8 @@ switch_init(struct switchd *sc) int switch_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg) { - struct switchd *sc = p->p_env; struct privsep *ps = p->p_ps; + struct switchd *sc = ps->ps_env; struct switch_control *sw; struct macaddr *mac; struct iovec iov[2]; |