**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "utils_ignorelist.h"
static int sensor_list_read_all (void)
{
- c_ipmi_sensor_list_t *list_item;
-
pthread_mutex_lock (&sensor_list_lock);
- for (list_item = sensor_list;
+ for (c_ipmi_sensor_list_t *list_item = sensor_list;
list_item != NULL;
list_item = list_item->next)
{
return (-1);
}
- ipmi_open_option_t open_option[ ] = {
+ ipmi_open_option_t open_option[1] = {
[0] = {
.option = IPMI_OPEN_OPTION_ALL,
- .ival = 1
+ { .ival = 1 }
}
};