From 423a8d8f96b11270a2647bb09fd87edc437c9c01 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 3 Feb 2014 16:47:10 +0000 Subject: 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. --- usr.sbin/config/mkmakefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/config') 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; -- cgit v1.1