X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fmic.c;h=4f4a9bacea13cfc2bf2fa86b802f548d386d8162;hp=3f9521d8ab7bcf7efb672a5688db367c0c5cc235;hb=d486225f89ea52d8ed2b4242eba2ad94c409f837;hpb=ba1015262cdc912f9d01ab5a76037e65033c54c5 diff --git a/src/mic.c b/src/mic.c index 3f9521d8..4f4a9bac 100644 --- a/src/mic.c +++ b/src/mic.c @@ -35,8 +35,8 @@ #define MAX_CORES 256 static MicDeviceOnSystem mics[MAX_MICS]; -static U32 num_mics = 0; -static HANDLE mic_handle = NULL; +static U32 num_mics; +static HANDLE mic_handle; static int const therm_ids[] = { eMicThermalDie, eMicThermalDevMem, eMicThermalFin, eMicThermalFout, @@ -50,13 +50,13 @@ static const char *config_keys[] = { "ShowPower", "Power", "IgnoreSelectedPower"}; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); -static _Bool show_cpu = 1; -static _Bool show_cpu_cores = 1; -static _Bool show_memory = 1; -static _Bool show_temps = 1; -static ignorelist_t *temp_ignore = NULL; -static _Bool show_power = 1; -static ignorelist_t *power_ignore = NULL; +static bool show_cpu = true; +static bool show_cpu_cores = true; +static bool show_memory = true; +static bool show_temps = true; +static ignorelist_t *temp_ignore; +static bool show_power = true; +static ignorelist_t *power_ignore; static int mic_init(void) { U32 ret;