From: Alexander Popov Date: Fri, 20 Jul 2018 16:03:11 +0000 (+0300) Subject: Rename check_state() according the new meaning X-Git-Tag: v0.5.2~88^2~8 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7e258c669531441065ac1d6663551388aacd502e;p=kconfig-hardened-check.git Rename check_state() according the new meaning --- diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index 949c19a..bd6afe5 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -182,10 +182,10 @@ def get_option_state(options, name): return options[name] if name in options else None -def check_state(options): +def perform_checks(parsed_options): for o in opt_list: opt = o[0] - opt.state = get_option_state(options, opt.name) + opt.state = get_option_state(parsed_options, opt.name) _, o[1] = opt.check() @@ -214,7 +214,7 @@ def check_config_file(fname): if option is not None: parsed_options[option] = value - check_state(parsed_options) + perform_checks(parsed_options) print_check_results() if debug_mode: