diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-08-13 21:36:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-08-13 21:36:19 +0000 |
commit | 46da9636a4959c81e0974caf99f364db627ecc1d (patch) | |
tree | 71cd035b35d7f10233931d3ef44b37f74b405fec /usr.sbin/config/ukc.h | |
parent | c953d6473f9bb997c7daa12b81443b2b17296026 (diff) |
config -eu uses a second copy of the nlist array[], which should never
become different or the #define's for the slots could diverge. To avoid
this, make one a copy of the other at runtime.
Diffstat (limited to 'usr.sbin/config/ukc.h')
-rw-r--r-- | usr.sbin/config/ukc.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/usr.sbin/config/ukc.h b/usr.sbin/config/ukc.h index b8ef2463caf..071437b9b70 100644 --- a/usr.sbin/config/ukc.h +++ b/usr.sbin/config/ukc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ukc.h,v 1.15 2019/08/11 17:08:33 deraadt Exp $ */ +/* $OpenBSD: ukc.h,v 1.16 2019/08/13 21:36:18 deraadt Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -71,28 +71,6 @@ struct nlist nl[] = { { "_nkmempages" }, { NULL }, }; -struct nlist knl[] = { - { "_locnames" }, - { "_locnamp" }, - { "_cfroots" }, - { "_cfroots_size" }, - { "_pv_size" }, - { "_pv" }, - { "_cfdata" }, - { "_kernel_text" }, - { "_version" }, - { "_extraloc" }, - { "_rextraloc" }, - { "_textraloc" }, - { "_userconf_histlen" }, - { "_userconf_history" }, - { "_tz" }, - { "_pdevnames" }, - { "_pdevnames_size" }, - { "_pdevinit" }, - { "_nkmempages" }, - { NULL }, -}; int maxdev = 0; int totdev = 0; int maxpseudo = 0; |