Date: Fri, 2 Mar 2018 02:39:16 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r330261 - head/stand/lua Message-ID: <201803020239.w222dGwx062870@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Fri Mar 2 02:39:16 2018 New Revision: 330261 URL: https://svnweb.freebsd.org/changeset/base/330261 Log: lualoader: Fix some lint-mentioned errors - nextbootfile is not a variable, but nextboot_file is - pstatus was explicitly initialized but later clobbered, so don't initialize it. Modified: head/stand/lua/config.lua Modified: head/stand/lua/config.lua ============================================================================== --- head/stand/lua/config.lua Fri Mar 2 01:53:50 2018 (r330260) +++ head/stand/lua/config.lua Fri Mar 2 02:39:16 2018 (r330261) @@ -173,7 +173,7 @@ local function checkNextboot() end if not config.parse(text) then - print(MSG_FAILPARSECFG:format(nextbootfile)) + print(MSG_FAILPARSECFG:format(nextboot_file)) end -- Attempt to rewrite the first line and only the first line of the @@ -274,7 +274,7 @@ end function config.loadmod(mod, silent) local status = true - local pstatus = true + local pstatus for k, v in pairs(mod) do if v.load == "YES" then local str = "load "
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803020239.w222dGwx062870>