summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2019-05-31 04:46:18 +0000
committervisa <visa@openbsd.org>2019-05-31 04:46:18 +0000
commitdd36ccd07cf22b99e18324a6e1efc9e854d519c1 (patch)
treeb9b7fa7a7ec98710ebee5845ea05cd95600b789a /sys/kern/init_main.c
parentfix ssh-keysign fd handling problem introduced in r1.304 caused by a typo (diff)
downloadwireguard-openbsd-dd36ccd07cf22b99e18324a6e1efc9e854d519c1.tar.xz
wireguard-openbsd-dd36ccd07cf22b99e18324a6e1efc9e854d519c1.zip
Rename struct plimit field p_refcnt to pl_refcnt to avoid confusion
with the fields of struct proc. Make pl_refcnt unsigned for upcoming atomic updating. OK deraadt@ guenther@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index effefd552c3..22a510c1f0d 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.284 2019/02/26 14:24:21 visa Exp $ */
+/* $OpenBSD: init_main.c,v 1.285 2019/05/31 04:46:18 visa Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -330,7 +330,7 @@ main(void *framep)
limit0.pl_rlimit[RLIMIT_RSS].rlim_max = lim;
limit0.pl_rlimit[RLIMIT_MEMLOCK].rlim_max = lim;
limit0.pl_rlimit[RLIMIT_MEMLOCK].rlim_cur = lim / 3;
- limit0.p_refcnt = 1;
+ limit0.pl_refcnt = 1;
/* Allocate a prototype map so we have something to fork. */
uvmspace_init(&vmspace0, pmap_kernel(), round_page(VM_MIN_ADDRESS),