From b1b1cccac577ca4a9ec301f919a16c2e13235b16 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Mon, 22 Feb 2010 18:19:47 +0100 Subject: [PATCH] cleanup: fix warning code Signed-off-by: Gordon Hecker --- generic/e2option.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generic/e2option.lua b/generic/e2option.lua index 50b8f22..a073b85 100644 --- a/generic/e2option.lua +++ b/generic/e2option.lua @@ -336,19 +336,19 @@ function parse(args) i = i + 1 end if opts["Wdefault"] or opts["Wall"] then - e2lib.warn_category.WDEFAULT = true + e2lib.globals.warn_category.WDEFAULT = true end if opts["Wdeprecated"] or opts["Wall"] then - e2lib.warn_category.WDEPRECATED = true + e2lib.globals.warn_category.WDEPRECATED = true end if opts["Wnoother"] then - e2lib.warn_category.WOTHER = false + e2lib.globals.warn_category.WOTHER = false end if opts["Wpolicy"] or opts["Wall"] then - e2lib.warn_category.WPOLICY = true + e2lib.globals.warn_category.WPOLICY = true end if opts["Whint"] or opts["Wall"] then - e2lib.warn_category.WHINT = true + e2lib.globals.warn_category.WHINT = true end e2option.opts = opts return opts, vals -- 2.39.5