diff options
author | imp <imp@FreeBSD.org> | 2014-02-03 16:47:10 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-02-03 16:47:10 +0000 |
commit | 423a8d8f96b11270a2647bb09fd87edc437c9c01 (patch) | |
tree | c885dbd45e68be4eebc13e83fc5fd6e1b116b851 | |
parent | fbdf7f73b57bff9874b4b20792294ae09630a937 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 2 |
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; |