summaryrefslogtreecommitdiff
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2019-08-17 02:35:53 +0000
committerWarner Losh <imp@FreeBSD.org>2019-08-17 02:35:53 +0000
commit622c9cdd31a7885b915e0c0cb2f2f37918104ea5 (patch)
tree8f57c68b2c5f50f071c5d5c0b2a9790f7e9d6347 /usr.sbin/config
parentf4aa9b67eb076ef9c457ad00925d502585250bea (diff)
downloadsrc-test2-622c9cdd31a7885b915e0c0cb2f2f37918104ea5.tar.gz
src-test2-622c9cdd31a7885b915e0c0cb2f2f37918104ea5.zip
Notes
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index 62b8d8bc053b..ba017c22b953 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -120,6 +120,16 @@ main(int argc, char **argv)
printmachine = 0;
kernfile = NULL;
SLIST_INIT(&includepath);
+ SLIST_INIT(&cputype);
+ SLIST_INIT(&mkopt);
+ SLIST_INIT(&opt);
+ SLIST_INIT(&rmopts);
+ STAILQ_INIT(&cfgfiles);
+ STAILQ_INIT(&dtab);
+ STAILQ_INIT(&fntab);
+ STAILQ_INIT(&ftab);
+ STAILQ_INIT(&hints);
+ STAILQ_INIT(&envvars);
while ((ch = getopt(argc, argv, "Cd:gI:mps:Vx:")) != -1)
switch (ch) {
case 'C':
@@ -197,16 +207,6 @@ main(int argc, char **argv)
strlcat(destdir, PREFIX, sizeof(destdir));
}
- SLIST_INIT(&cputype);
- SLIST_INIT(&mkopt);
- SLIST_INIT(&opt);
- SLIST_INIT(&rmopts);
- STAILQ_INIT(&cfgfiles);
- STAILQ_INIT(&dtab);
- STAILQ_INIT(&fntab);
- STAILQ_INIT(&ftab);
- STAILQ_INIT(&hints);
- STAILQ_INIT(&envvars);
if (yyparse())
exit(3);