diff --git a/src/nut.c b/src/nut.c
index a033e2f668503520eb8860fc8bf54f2354d803d3..b5c6b41b6522142aba73716ed36b5a05e4886608 100644 (file)
--- a/src/nut.c
+++ b/src/nut.c
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
static int nut_read (void)
{
- nut_ups_t *ups;
int success = 0;
pthread_mutex_lock (&read_lock);
if (success != 0)
return (0);
- for (ups = upslist_head; ups != NULL; ups = ups->next)
+ for (nut_ups_t *ups = upslist_head; ups != NULL; ups = ups->next)
if (nut_read_one (ups) == 0)
success++;