Skip to content
Commit 3e1f12c2 authored by Roman Storozhenko's avatar Roman Storozhenko Committed by Shuah Khan
Browse files

cpupower: Change the var type of the 'monitor' subcommand display mode



There is a type 'enum operation_mode_e' contains the display modes of
the 'monitor' subcommand. This type isn't used though, instead the
variable 'mode' is of a simple 'int' type.
Change 'mode' variable type from 'int' to 'enum operation_mode_e' in
order to improve compiler type checking.
Built and tested this with different monitor cmdline params. Everything
works as expected, that is nothing changed and no regressions encountered.

Signed-off-by: default avatarRoman Storozhenko <romeusmeister@gmail.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent a286db93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment