summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-07-19 17:31:23 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-07-19 17:31:23 +0000
commit2743bffdf44c72b911e90ca5e42e7464f2062bdd (patch)
tree0042d5b230e8cc9c4d3b7bfa1a8d9a98c1844818 /usr.sbin
parent28626bc56dd872112aa160a3e7bd2cfd4d9cd5d8 (diff)
Don't use .p_shutdown in the proc struct
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/switchd/ofcconn.c3
-rw-r--r--usr.sbin/switchd/switchd.c5
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/switchd/ofcconn.c b/usr.sbin/switchd/ofcconn.c
index 8a90fc0366e..3881b333f29 100644
--- a/usr.sbin/switchd/ofcconn.c
+++ b/usr.sbin/switchd/ofcconn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofcconn.c,v 1.1 2016/07/19 16:54:26 reyk Exp $ */
+/* $OpenBSD: ofcconn.c,v 1.2 2016/07/19 17:31:22 reyk Exp $ */
/*
* Copyright (c) 2016 YASUOKA Masahiko <yasuoka@openbsd.org>
@@ -78,6 +78,7 @@ int ofcconn_say_hello(struct ofcconn *);
pid_t
ofcconn_proc_init(struct privsep *ps, struct privsep_proc *p)
{
+ p->p_shutdown = ofcconn_proc_shutdown;
return (proc_run(ps, p, procs, nitems(procs), NULL, NULL));
}
diff --git a/usr.sbin/switchd/switchd.c b/usr.sbin/switchd/switchd.c
index 3bc84151d27..e8db42be69c 100644
--- a/usr.sbin/switchd/switchd.c
+++ b/usr.sbin/switchd/switchd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: switchd.c,v 1.1 2016/07/19 16:54:26 reyk Exp $ */
+/* $OpenBSD: switchd.c,v 1.2 2016/07/19 17:31:22 reyk Exp $ */
/*
* Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org>
@@ -54,8 +54,7 @@ __dead void usage(void);
static struct privsep_proc procs[] = {
{ "ofp", PROC_OFP, NULL, ofp },
{ "control", PROC_CONTROL, parent_dispatch_control, control },
- { "ofcconn", PROC_OFCCONN, NULL, ofcconn_proc_init,
- .p_shutdown = ofcconn_proc_shutdown }
+ { "ofcconn", PROC_OFCCONN, NULL, ofcconn_proc_init }
};
__dead void