Date: Mon, 3 Feb 2014 16:47:11 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261437 - head/usr.sbin/config Message-ID: <201402031647.s13GlBVB064282@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402031647.s13GlBVB064282>