svn commit: r261437 - head/usr.sbin/config

Warner Losh imp at FreeBSD.org
Mon Feb 3 16:47:11 UTC 2014


Author: imp
Date: Mon Feb  3 16:47:10 2014
New Revision: 261437
URL: http://svnweb.freebsd.org/changeset/base/261437

Log:
  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.

Modified:
  head/usr.sbin/config/mkmakefile.c

Modified: head/usr.sbin/config/mkmakefile.c
==============================================================================
--- head/usr.sbin/config/mkmakefile.c	Mon Feb  3 16:46:01 2014	(r261436)
+++ head/usr.sbin/config/mkmakefile.c	Mon Feb  3 16:47:10 2014	(r261437)
@@ -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;


More information about the svn-src-all mailing list