Turbostat: use _Bool for boolean values
authorVincent Brillault <git@lerya.net>
Sat, 23 Aug 2014 14:30:06 +0000 (16:30 +0200)
committerVincent Brillault <git@lerya.net>
Sat, 28 Feb 2015 06:35:41 +0000 (07:35 +0100)
src/turbostat.c

index 03ffaf5..0f84a99 100644 (file)
@@ -72,10 +72,11 @@ static _Bool aperf_mperf_unstable;
 
 static unsigned int do_core_cstate;
 static unsigned int do_pkg_cstate;
-static unsigned int do_rapl;
-static unsigned int do_dts;
-static unsigned int do_ptm;
+static _Bool do_dts;
+static _Bool do_ptm;
 static unsigned int tcc_activation_temp;
+
+static unsigned int do_rapl;
 static double rapl_energy_units;
 
 #define RAPL_PKG               (1 << 0)