summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-02-03 16:47:10 +0000
committerimp <imp@FreeBSD.org>2014-02-03 16:47:10 +0000
commit423a8d8f96b11270a2647bb09fd87edc437c9c01 (patch)
treec885dbd45e68be4eebc13e83fc5fd6e1b116b851 /usr.sbin/config
parentfbdf7f73b57bff9874b4b20792294ae09630a937 (diff)
downloadFreeBSD-src-423a8d8f96b11270a2647bb09fd87edc437c9c01.zip
FreeBSD-src-423a8d8f96b11270a2647bb09fd87edc437c9c01.tar.gz
Don't believe we have a requirement until after we've checked all the
known key words. This will make error messages slightly better in weird corner cases, but should otherwise be a nop.
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/mkmakefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index 29afd08..364b5af 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -497,7 +497,6 @@ nextparam:
objprefix = ns(wd);
goto nextparam;
}
- nreqs++;
if (eq(wd, "local")) {
filetype = LOCAL;
goto nextparam;
@@ -514,6 +513,7 @@ nextparam:
nowerror = 1;
goto nextparam;
}
+ nreqs++;
STAILQ_FOREACH(dp, &dtab, d_next)
if (eq(dp->d_name, wd)) {
dp->d_done |= DEVDONE;
OpenPOWER on IntegriCloud