projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb0711d
)
Rename check_state() according the new meaning
author
Alexander Popov
<alex.popov@linux.com>
Fri, 20 Jul 2018 16:03:11 +0000
(19:03 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Fri, 20 Jul 2018 16:03:11 +0000
(19:03 +0300)
kconfig-hardened-check.py
patch
|
blob
|
history
diff --git
a/kconfig-hardened-check.py
b/kconfig-hardened-check.py
index 949c19a56fbb3e2fed62484bdfca007006b2a017..bd6afe51d572ea3af5123ad15eed9069af9f10ea 100755
(executable)
--- 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: