WSL2-Linux-Kernel/tools/power/cpupower/bench
Rickard Strandqvist 13f6de52b1 cpupower: bench: parse.c: Fix several minor errors
Resolved several minor errors in prepare_config() and made some additional improvements.
Earlier, the risk of file stream that was not closed. Misuse of strncpy, and the use of strncmp with strlen that makes it pointless.
I also check that sscanf has been successful, otherwise continue to the next line. And minimized the use of magic numbers.

This was found using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-07-30 01:57:13 +02:00
..
Makefile cpupower tool: allow to build in a separate directory 2012-03-03 14:40:10 +01:00
README-BENCH cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00
benchmark.c cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
benchmark.h cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
config.h cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
cpufreq-bench_plot.sh cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00
cpufreq-bench_script.sh cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00
example.cfg cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00
main.c cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
parse.c cpupower: bench: parse.c: Fix several minor errors 2014-07-30 01:57:13 +02:00
parse.h cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
system.c cpupowerutils: bench - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
system.h cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00